StyledElementAction
struct · ferroui-xaml-interactivity · v0.5.0
struct StyledElementAction
A base class for action that calls a method on a specified object when invoked.
The action is a styled element: under a StyledElementTrigger
that is in the logical tree it is a logical child of the trigger (one way), so it binds with
$parent and TemplateBinding.
The class is abstract: a deriving class implements StyledElementActionImpl::execute.
Members
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<StyledElementAction>
Returns a strong reference to this object.
execute
fn execute(self: &Self, sender: Option<&BoxedValue>, parameter: Option<&BoxedValue>) -> Option<BoxedValue>
Executes the action.
sender is the object that is passed to the action by the behavior. Generally this is
the associated object of the behavior or a target object. The value of parameter is
determined by the caller. An example of parameter usage is EventTriggerBehavior,
which passes the event args as a parameter to its actions.
Returns the result of the action.
is_enabled_property
fn is_enabled_property() -> &'static StyledProperty<bool>
Identifies the IsEnabled property.
construct
fn construct() -> Self
Creates the class data; see FerroObject::construct.
is_enabled
fn is_enabled(self: &Self) -> bool
Gets or sets a value indicating whether this instance is enabled.
set_is_enabled
fn set_is_enabled(self: &Self, value: bool)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeStyledElementActionImplExtBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtStyledElementImplExtClassDefaultsErasedDestructorIntoEitherDerefUpcast<T>Upcast<StyledElementAction>StaticTypeObjectTypeSubclassable<T>FerroObjectImplStyledElementImplStyledElementActionImplIAction
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.