FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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.

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

    Returns a strong reference to this object.

    Source

    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.

    Source

    is_enabled_property

    fn is_enabled_property() -> &'static StyledProperty<bool>
    

    Identifies the IsEnabled property.

    Source

    construct

    fn construct() -> Self
    

    Creates the class data; see FerroObject::construct.

    Source

    is_enabled

    fn is_enabled(self: &Self) -> bool
    

    Gets or sets a value indicating whether this instance is enabled.

    Source

    set_is_enabled

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

    Source

    Trait implementations

    Availability

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