FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    IRuntimeXamlLoader

    trait · ferroui-markup-xaml · v0.5.0

    trait IRuntimeXamlLoader
    

    Loads documents from their text at run time. Registered as a service (FerroLocator) by the runtime XAML loader crate; without it only compiled documents can be loaded.

    View source

    Members

    load

    fn load(self: &Self, document: RuntimeXamlLoaderDocument, configuration: RuntimeXamlLoaderConfiguration) -> Result<BoxedValue, XamlLoadError>
    

    Source

    load_object

    fn load_object(self: &Self, instance: &BoxedValue, service_provider: Option<&Rc<dyn IServiceProvider>>) -> Result<(), XamlLoadError>
    

    Populates instance (an object whose class names a document with x:Class) from the markup of its class, when no compiled markup is registered for it. A loader that cannot find markup for a class keeps the default: the error of the managed original for an object without compiled markup.

    Source

    Availability

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