FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    IRecyclingDataTemplate

    trait · ferroui-controls · v0.5.0

    trait IRecyclingDataTemplate: IDataTemplate
    

    An IDataTemplate that supports recycling existing elements.

    View source

    Members

    build_with_existing

    fn build_with_existing(self: &Self, data: Option<&BoxedValue>, existing: Option<Ref<Control>>) -> Option<Ref<Control>>
    

    Creates or recycles a control to display the specified data.

    existing is an optional control that was previously created by this template that may be recycled. The recycled control should be returned unchanged; its data context is set by the caller.

    Source

    Trait implementations

    Availability

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