UI Toolkit includes an event systemA way of sending events to objects in the application based on input, be it keyboard, mouse, touch, or custom input. The Event System consists of a few components that work together to send events. More info
See in Glossary that communicates user interactions to visual elements. Inspired by HTML events, the UI(User Interface) Allows a user to interact with your application. More info
See in Glossary Toolkit event system shares many of the same terminology and event naming. The event system is composed of the following:
EventBase
and grouped into families. Each family of events implements an interface that defines the common characteristics for all events of the same family. For example, MouseUpEvent
, MouseDownEvent
and other mouse events implement the IMouseEvent
inteface. This interface specifies that each mouse event has a position, a pressed button, a set of modifers, and other mouse-related event types. See Event type reference for a description of each event family and their UIElement event types.You can also use events to communicate other types of messages to visual elements. For example, the ContextualMenuManager
uses the ContextualMenuPopulateEvent
to add items to a contextual menu. See built-in controls.