Replies: 1 comment
-
How do you expect it to work with keyboard navigation, how would you "reselect" the item? Would using GotFocus to update the property editor work? Otherwise you can use MouseLeftButtonDown event on the ListBoxItem... |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I made a cascading listboxes control:
386569754-ff7e3333-24c4-4323-94cb-a722acc844b7.mp4
However, if I click on an already selected item at any level, the SelectionChanged event does not fire again, and consequently, the Property Editor does not update either:
386570556-8f2b1822-c775-4040-979d-a58f5b71ee59.mp4
I know I can use "invoke" etc. though I'm using a MVVM-like solution (Elmish.WPF), so I guess a behavior + custom dependency property might be a solution?
Is there a way to create an "ItemClicked" event that listen to any selected/unselected item click at any level so that when its triggered, I could call SelectionChanged even on an already seleted Item (that would in fact reselect itself so the Property Editor updates)? (I hope I dont sound too confused here)
*Calling Deselect then SelectItem seems a bad option IMO (I don't want stuff to "flash"), though I may be wrong
( here's the repo )
Thank you
Beta Was this translation helpful? Give feedback.
All reactions