FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    CollectionChangedTrigger

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

    struct CollectionChangedTrigger
    

    Executes associated actions whenever the bound collection raises a collection changed event.

    The description of the change is the parameter of the actions.

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

    Returns a strong reference to this object.

    Source

    collection_property

    fn collection_property() -> &'static StyledProperty<Option<ItemsSource>>
    

    Identifies the Collection property.

    Deviation (DEVIATIONS.md, Behaviors): the collection (INotifyCollectionChanged of the reference) is an untyped list of the framework (ItemsSource); a list that does not notify its changes is not observed.

    Source

    construct

    fn construct() -> Self
    

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

    Source

    new

    fn new() -> Ref<Self>
    

    Creates a trigger.

    Source

    collection

    fn collection(self: &Self) -> Option<ItemsSource>
    

    Gets or sets the collection to observe. Markup resolves a name given for it to the named element.

    Source

    set_collection

    fn set_collection(self: &Self, value: Option<ItemsSource>)
    

    Source

    Trait implementations

    Availability

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