FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    AutoDataTemplateBindingHook

    struct · ferroui-reactiveui-controls · v0.5.0

    struct AutoDataTemplateBindingHook
    

    A binding hook that gives an ItemsControl a default data template when it has no item template and no data templates (AutoDataTemplateBindingHook).

    It serves view models bound to item controls: without a template the items would not be rendered as their views, so the default template shows each item with a ViewModelViewHost.

    View source

    Members

    new

    fn new() -> Self
    

    The hook.

    Source

    default_item_template

    fn default_item_template() -> Rc<dyn IDataTemplate>
    

    The default data template (DefaultItemTemplate).

    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
    • Debug
    • Default
    • IPropertyBindingHook

    Availability

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