FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    RemoveElementAction

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

    struct RemoveElementAction
    

    Removes the target_object (or the sender) from its parent: a panel, a decorator, a content control, a content presenter or an items control.

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

    Returns a strong reference to this object.

    Source

    target_object_property

    fn target_object_property() -> &'static StyledProperty<Option<ElementRef<Control>>>
    

    Identifies the TargetObject property.

    Deviation (DEVIATIONS.md, Behaviors): the action does not own its target, so the value is an element reference.

    Source

    construct

    fn construct() -> Self
    

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

    Source

    new

    fn new() -> Ref<Self>
    

    Creates an action.

    Source

    target_object

    fn target_object(self: &Self) -> Option<Ref<Control>>
    

    Gets or sets the element to remove. If not set, the sender is used. Markup resolves a name given for it to the named element.

    Source

    set_target_object

    fn set_target_object(self: &Self, value: impl Into<Nullable<Control>>)
    

    Source

    Trait implementations

    Availability

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