FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    XamlBindingHelper

    struct · ferroui-controls · v0.5.0

    struct XamlBindingHelper
    

    WinUI's XamlBindingHelper: the attached property of the template component of an element.

    The root of a template instance with {x:Bind} bindings carries the bindings of the instance as its component; a container that finds one drives the instance through it instead of its data context.

    View source

    Members

    TYPE

    const TYPE: &'static $crate::TypeInfo
    

    The runtime type of this type.

    Source

    data_template_component_property

    fn data_template_component_property() -> &'static AttachedProperty<Option<Rc<dyn IDataTemplateComponent>>>
    

    The template component of the root of a template instance.

    Source

    get_data_template_component

    fn get_data_template_component(element: &Control) -> Option<Rc<dyn IDataTemplateComponent>>
    

    The template component of element.

    Source

    set_data_template_component

    fn set_data_template_component(element: &Control, component: Option<Rc<dyn IDataTemplateComponent>>)
    

    Sets the template component of element.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ClassDefaults
    • ErasedDestructor
    • IntoEither
    • StaticType

    Availability

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