FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    CompiledBindingExtension

    struct · ferroui-markup-xaml · v0.5.0

    struct CompiledBindingExtension
    

    {CompiledBinding Path}: a binding with a compiled path, as markup declares it. Providing its value creates the binding with the context of the place it is declared in (the default anchor).

    The managed class derives from the compiled binding class; here it holds one (base) and dereferences to it, so the inherited properties are read and set on the extension itself.

    View source

    Members

    new

    fn new() -> Rc<Self>
    

    Source

    with_path

    fn with_path(path: CompiledBindingPath) -> Rc<Self>
    

    Creates the extension with a path.

    Source

    base

    fn base(self: &Self) -> &Rc<CompiledBinding>
    

    The compiled binding this extension is (the base class part).

    Source

    provide_value

    fn provide_value(self: &Self, provider: Option<&Rc<dyn IServiceProvider>>) -> Rc<CompiledBinding>
    

    Creates the binding the extension describes.

    Source

    data_type

    fn data_type(self: &Self) -> Option<ValueType>
    

    The type of the data context the path was compiled against.

    Source

    set_data_type

    fn set_data_type(self: &Self, value: Option<ValueType>)
    

    Source

    Trait implementations

    Availability

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