FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    EventTriggerBehavior

    struct · ferroui-xaml-interactions · v0.5.0

    struct EventTriggerBehavior
    

    A behavior that listens for a specified event on its source and executes its actions when that event is fired.

    The event is found by name on the source (see EventTriggerBase): a routed event of its class, a plain event its markup metadata declares, or an event of the registry of event handlers. The default event, AttachedToVisualTree, fires when a control without a parent is attached to the visual tree.

    View source

    Members

    TYPE

    const TYPE: &'static $crate::TypeInfo
    

    The runtime type of this class.

    Source

    to_ref

    fn to_ref(self: &Self) -> $crate::Ref<EventTriggerBehavior>
    

    Returns a strong reference to this object.

    Source

    construct

    fn construct() -> Self
    

    Creates the class data; see ferroui_base::FerroObject::construct.

    Source

    new

    fn new() -> Ref<Self>
    

    Creates a trigger.

    Source

    Trait implementations

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.