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.
Members
TYPEto_refrouted_event_propertyrouting_strategies_propertysource_interactive_propertyconstructnewrouted_eventset_routed_eventrouting_strategiesset_routing_strategiessource_interactiveset_source_interactive
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<RoutedEventTriggerBehavior>
Returns a strong reference to this object.
routed_event_property
fn routed_event_property() -> &'static StyledProperty<Option<RoutedEvent>>
Identifies the RoutedEvent property.
routing_strategies_property
fn routing_strategies_property() -> &'static StyledProperty<RoutingStrategies>
Identifies the RoutingStrategies property.
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.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new() -> Ref<Self>
Creates a trigger.
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.
set_routed_event
fn set_routed_event(self: &Self, value: Option<RoutedEvent>)
routing_strategies
fn routing_strategies(self: &Self) -> RoutingStrategies
Gets or sets the routing event RoutingStrategies. This is a property of the object
model.
set_routing_strategies
fn set_routing_strategies(self: &Self, value: RoutingStrategies)
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.
set_source_interactive
fn set_source_interactive(self: &Self, value: impl Into<Nullable<Interactive>>)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtStyledElementImplExtClassDefaultsErasedDestructorIntoEitherStyledElementBehaviorImplExtDerefUpcast<T>Upcast<RoutedEventTriggerBehavior>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleStyledElementImplFerroObjectImplStyledElementBehaviorImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.