FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    RemoveItemAtAction

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

    struct RemoveItemAtAction
    

    Removes an item at a specified index from an ItemsControl: the items_control, or else the sender.

    The action returns true when the item was removed; else false.

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

    Returns a strong reference to this object.

    Source

    items_control_property

    fn items_control_property() -> &'static StyledProperty<Option<ElementRef<ItemsControl>>>
    

    Identifies the ItemsControl property.

    Deviation (DEVIATIONS.md, Behaviors): the items control is held by an element reference (a weak reference), as the framework holds the elements a property names.

    Source

    index_property

    fn index_property() -> &'static StyledProperty<i32>
    

    Identifies the Index property.

    Source

    construct

    fn construct() -> Self
    

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

    Source

    new

    fn new() -> Ref<Self>
    

    Creates an action.

    Source

    items_control

    fn items_control(self: &Self) -> Option<Ref<ItemsControl>>
    

    Gets or sets items control. Markup resolves a name given for it to the named element.

    Source

    set_items_control

    fn set_items_control(self: &Self, value: Option<Ref<ItemsControl>>)
    

    Source

    index

    fn index(self: &Self) -> i32
    

    Gets or sets index to remove.

    Source

    set_index

    fn set_index(self: &Self, value: i32)
    

    Source

    Trait implementations

    Availability

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