FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ExecuteCommandRoutedEventBehaviorBase

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

    struct ExecuteCommandRoutedEventBehaviorBase
    

    The base class of the behaviors that execute a command on a routed event: the routing strategies the handler listens to, and whether the event is marked as handled when the command runs.

    The class is abstract.

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

    Returns a strong reference to this object.

    Source

    event_routing_strategy_property

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

    Identifies the EventRoutingStrategy property.

    Source

    construct

    fn construct() -> Self
    

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

    Source

    event_routing_strategy

    fn event_routing_strategy(self: &Self) -> RoutingStrategies
    

    Gets or sets the routing strategies the handler of the event listens to.

    Source

    set_event_routing_strategy

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

    Source

    mark_as_handled

    fn mark_as_handled(self: &Self) -> bool
    

    Gets or sets the value the handled flag of the event is set to when the command runs (true by default). This is a plain property, not a property of the object model.

    Source

    set_mark_as_handled

    fn set_mark_as_handled(self: &Self, value: bool)
    

    Source

    Trait implementations

    Availability

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