InsertItemToItemsControlAction
struct · ferroui-xaml-interactions-custom · v0.5.0
struct InsertItemToItemsControlAction
Allows a user to insert the item to a ItemsControl.
The action returns true when the item was inserted in the items source of the items control; else false.
Members
TYPEto_refitems_control_propertyitem_propertyindex_propertyconstructnewitems_controlset_items_controlitemset_itemindexset_index
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<InsertItemToItemsControlAction>
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.
item_property
fn item_property() -> &'static StyledProperty<Option<BoxedValue>>
Identifies the Item property.
index_property
fn index_property() -> &'static StyledProperty<i32>
Identifies the Index 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>>)
item
fn item(self: &Self) -> Option<BoxedValue>
Gets or sets item to insert. A template (ITemplate) inserts the object it builds.
set_item
fn set_item(self: &Self, value: Option<BoxedValue>)
index
fn index(self: &Self) -> i32
Gets or sets item index to insert.
set_index
fn set_index(self: &Self, value: i32)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtStyledElementImplExtClassDefaultsErasedDestructorIntoEitherStyledElementActionImplExtDerefUpcast<T>Upcast<InsertItemToItemsControlAction>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleFerroObjectImplStyledElementImplStyledElementActionImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.