c# - UWP - ListBoxItem - Click Trigger. -




i´ve uwp application listbox. when click on related listboxitem change frame content. ( using selectionchanged event this. ) inside frame can go , multiple operations such move page frame. (and keep sme listboxitem selected. )

so have -> mainpage -> contactspage -> contactsdetailpage. (on listbox have "contacts" item selected). but, if on "contactsdetailspage" click on "contacts" listboxitem selectionchanged doesnt trigger ( because selected). so, cannot navigate "contact" page.

there event can use navigate when click on listboxitem ? or can suggest options ?

thank !

you may set index -1 after logic , ignore when it's fired:

    private void listbox_onselectionchanged(object sender, selectionchangedeventargs e)     {         if (listbox.selectedindex == -1) return;         //your logic         listbox.selectedindex = -1;     } 




wiki

Comments

Popular posts from this blog

Asterisk AGI Python Script to Dialplan does not work -

python - Read npy file directly from S3 StreamingBody -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -