FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    RoutedEventTriggerBehavior

    struct · ferroui-xaml-interactions-custom · v0.5.0

    struct RoutedEventTriggerBehavior
    

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

    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<RoutedEventTriggerBehavior>
    

    Returns a strong reference to this object.

    Source

    routed_event_property

    fn routed_event_property() -> &'static StyledProperty<Option<RoutedEvent>>
    

    Identifies the RoutedEvent property.

    Source

    routing_strategies_property

    fn routing_strategies_property() -> &'static StyledProperty<RoutingStrategies>
    

    Identifies the RoutingStrategies property.

    Source

    source_interactive_property

    fn source_interactive_property() -> &'static StyledProperty<Option<ElementRef<Interactive>>>
    

    Identifies the SourceInteractive property.

    Deviation (DEVIATIONS.md, Behaviors): the behavior does not own its source, so the value is an element reference.

    Source

    construct

    fn construct() -> Self
    

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

    Source

    new

    fn new() -> Ref<Self>
    

    Creates a trigger.

    Source

    routed_event

    fn routed_event(self: &Self) -> Option<RoutedEvent>
    

    Gets or sets routing event to listen for. This is a property of the object model.

    Source

    set_routed_event

    fn set_routed_event(self: &Self, value: Option<RoutedEvent>)
    

    Source

    routing_strategies

    fn routing_strategies(self: &Self) -> RoutingStrategies
    

    Gets or sets the routing event RoutingStrategies. This is a property of the object model.

    Source

    set_routing_strategies

    fn set_routing_strategies(self: &Self, value: RoutingStrategies)
    

    Source

    source_interactive

    fn source_interactive(self: &Self) -> Option<Ref<Interactive>>
    

    Gets or sets the source object from which this behavior listens for events. If it is not set, the source will default to the associated object. This is a property of the object model; markup resolves a name given for it to the named element.

    Source

    set_source_interactive

    fn set_source_interactive(self: &Self, value: impl Into<Nullable<Interactive>>)
    

    Source

    Trait implementations

    Availability

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