Best way to trigger onHover events in UI Toolkit elements

Pretty much as the title has it; What are the best ways to trigger onHover events in UI toolkit elements?

OnClick events are covered in examples, but, other than style changes using “:hover” for a particular element, I haven’t seen a way to trigger a ‘onHover’ event in code in order to trigger some dynamic event.

Ultimately I’m looking to have the user hover over an element (an icon or some text, for example) and have a dynamic pop-up window trigger at the location of the hover. Is there way a to do this?

Have you checked the MouseOverEvent event?

EDIT: I had used the wrong name for the event, just fixed it.

Gah! Is it really that simple! :smile:

Yep - apologies for what is in hindsight an utterly noob question - thanks for the answer tho, has helped me work out how it works! :slight_smile:

1 Like

No problem! I had used the wrong name for the event though, I just edited my previous message to the right one (MouseOverEvent).