FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    WinUIXBindPolicy

    enum · ferroui-markup-xaml-winui · v0.5.0

    enum WinUIXBindPolicy
    

    What the migration does with WinUI's {x:Bind} (docs/porting/x-bind.md, X6).

    View source

    Members

    Compile

    Compile
    

    Keep x:Bind as written: the XAML compiler (the run-time loader and the Rust emitter) compiles it with its x:Bind core, XBindExtension of ferroui-markup-xaml. The paths, functions, casts, indexers, converters, substitute values, event bindings, x:Phase, x:DefaultBindMode, x:Load and x:DeferLoadStrategy are WinUI's and are checked with WinUI's messages. The bindings of a document root are initialized when it is attached to a visual tree (a Window when it is activated), those of a typed template instance when its data context changes to an item; XBindings::get_for_root gives the per-root Bindings (initialize, update, stop_tracking).

    Source

    Reject

    Reject
    

    Report every x:Bind of the document as an error (WXAML1007), for a host that rewrites x:Bind by hand, for example to {Binding}.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToOwned
    • PropertyValue
    • AnyValue
    • ClassDefaults
    • ErasedDestructor
    • IntoEither
    • Clone
    • Copy
    • Debug
    • Default
    • StructuralPartialEq
    • PartialEq
    • Eq

    Availability

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