ClearCollectionAction
struct · ferroui-xaml-interactions-custom · v0.5.0
struct ClearCollectionAction
Clears all items from a target list when invoked.
The action returns true when the list was cleared; else false.
Members
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<ClearCollectionAction>
Returns a strong reference to this object.
target_property
fn target_property() -> &'static StyledProperty<Option<ItemsSource>>
Identifies the Target property.
Deviation (DEVIATIONS.md, Behaviors): the target (IList of the reference) is an
untyped list of the framework (ItemsSource); a FerroList or an
ObservableCollection of the item types the items actions of the port change (see
ItemsControl/) is cleared, another list is read only.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new() -> Ref<Self>
Creates an action.
target
fn target(self: &Self) -> Option<ItemsSource>
Gets or sets the collection to clear.
set_target
fn set_target(self: &Self, value: Option<ItemsSource>)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtClassDefaultsErasedDestructorIntoEitherDerefUpcast<T>Upcast<ClearCollectionAction>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleFerroObjectImplIAction
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.