Interaction
struct · ferroui-xaml-interactivity · v0.5.0
struct Interaction
Defines a BehaviorCollection attached property and provides a method for executing an
ActionCollection.
Members
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this type.
behaviors_property
fn behaviors_property() -> &'static AttachedProperty<Option<BehaviorCollection>>
Gets or sets the BehaviorCollection associated with a specified object.
get_behaviors
fn get_behaviors(obj: &FerroObject) -> BehaviorCollection
Gets the BehaviorCollection associated with a specified object.
A collection is created and set if the object has none: the collection of markup's
property element syntax (<Interaction.Behaviors>), which adds the behaviors to the
collection the getter returns.
set_behaviors
fn set_behaviors(obj: &FerroObject, value: Option<BehaviorCollection>)
Sets the BehaviorCollection associated with a specified object.
execute_actions
fn execute_actions(sender: Option<&BoxedValue>, actions: Option<&ActionCollection>, parameter: Option<&BoxedValue>) -> Vec<BoxedValue>
Executes all actions in the ActionCollection and returns their results.
sender is passed on to the actions; the value of parameter is determined by the calling
behavior. Returns the results of the actions that returned one, in the order of the
actions.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyClassDefaultsErasedDestructorIntoEitherStaticTypeMarkupTyped
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.