MoveItemInItemsControlAction
struct · ferroui-xaml-interactions-custom · v0.5.0
struct MoveItemInItemsControlAction
Moves an item within an ItemsControl from from_index to
to_index.
The items control is the items_control, or else the first items
control among the sender (a control) and its logical ancestors. A negative target index moves
the item to the end. The action returns true when the item was moved; else false.
Members
TYPEto_refitems_control_propertyfrom_index_propertyto_index_propertyconstructnewitems_controlset_items_controlfrom_indexset_from_indexto_indexset_to_index
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<MoveItemInItemsControlAction>
Returns a strong reference to this object.
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.
from_index_property
fn from_index_property() -> &'static StyledProperty<i32>
Identifies the FromIndex property.
to_index_property
fn to_index_property() -> &'static StyledProperty<i32>
Identifies the ToIndex property.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new() -> Ref<Self>
Creates an action.
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.
set_items_control
fn set_items_control(self: &Self, value: Option<Ref<ItemsControl>>)
from_index
fn from_index(self: &Self) -> i32
Gets or sets source index.
set_from_index
fn set_from_index(self: &Self, value: i32)
to_index
fn to_index(self: &Self) -> i32
Gets or sets target index.
set_to_index
fn set_to_index(self: &Self, value: i32)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtStyledElementImplExtClassDefaultsErasedDestructorIntoEitherStyledElementActionImplExtDerefUpcast<T>Upcast<MoveItemInItemsControlAction>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleFerroObjectImplStyledElementImplStyledElementActionImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.