Sample Control: Dropdown - Add ItemVisualStateChanged event. #253
Replies: 1 comment
-
To make this even better, today, I just moved this event (OnItemVisualStateChanged) up to "Dropdown.cs" instead, right alongside "OnItemClicked", and then implemented in a similar fashion, as I should have in the first place. NOTE - this new event should send BOTH the NewState and PrevState, in the arguments, so that you know the full details of the transition. A BETTER APPROACH, IMO, is to just add one event: where: Then it becomes obvious/butt-simple to register for Item Gesture Events. If you'd like to save yourself some time, I'd be happy to code this up for you and submit it. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I've modified your code to do this for me, and occurred to me that this should probably be the built-in behavior. It's a little tedious (for someone not familiar with your code), but not a complex thing to do, so I won't paste my own solution here.
As the user hovers over the various Entities on the map in the DropDown list, I want them to highlight ALSO on the map, which requires that I be able to register for the "ItemVisualStateChanged" event, and look for it to change to "Hovered".
Here's the event I added to DropdownVisuals (was the easiest place for me to insert it):
Beta Was this translation helpful? Give feedback.
All reactions