FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ReflectionBindingExtension

    struct · ferroui-markup-xaml · v0.5.0

    struct ReflectionBindingExtension
    

    {ReflectionBinding Path}: a binding whose path is resolved at run time, as markup declares it. Providing its value creates the binding with the context of the place it is declared in: the type resolver, the default anchor and the name scope.

    The managed class derives from the reflection 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: &str) -> Rc<Self>
    

    Creates the extension with a path.

    Source

    base

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

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

    Source

    provide_value

    fn provide_value(self: &Self, service_provider: &Rc<dyn IServiceProvider>) -> Rc<ReflectionBinding>
    

    Creates the binding the extension describes.

    Source

    Trait implementations

    Availability

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