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
Post a Comment