Triggers

Triggers and messages are used to create interactions. With triggers you can set specified actions, such as setting a property to a certain value or playing an animation. Messages are generated, for example, from the user input and handled by the UI components according to their specified behavior.

Most of the message handling behavior is predefined in a UI component, such as scrolling in a list box, but you can define much of behavior to meet the requirements of your application. For example, the simplest UI component, a button, creates a click message whenever a user clicks, or taps it, but you can define what happens after the generated click message. An example action is that a click triggers an animation that highlights the button the user clicked.

All Kanzi objects can send and receive messages that can be intercepted with triggers. While certain UI components can receive messages from specific user input events. For example, a button can receive click messages and a scroll view can receive scroll messages.

These concepts relate to defining event-driven logic:

See also

Using triggers

Using input manipulators

Tutorial: Creating a button

Using messages