FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    AppBuilderExtensions

    trait · ferroui-reactiveui-controls · v0.5.0

    trait AppBuilderExtensions
    

    Extends the application builder of ferroui-controls with ReactiveUI (AppBuilderExtensions, extension(AppBuilder builder)).

    View source

    Members

    use_reactive_ui

    fn use_reactive_ui(self: &Self, with_reactive_ui_builder: impl Fn(&ReactiveUIBuilder) -> () + 'static) -> AppBuilder
    

    Configures the application to use ReactiveUI with FerroUI (UseReactiveUI): after the platform services are set up, ReactiveUI is built with the services of FerroUI (activation, property observation, command binding, the scheduler of the user interface thread), and with_reactive_ui_builder can register more services or change the configuration before the application is built.

    Source

    register_reactive_ui_views

    fn register_reactive_ui_views(self: &Self, assemblies: Vec<Rc<ViewAssembly>>) -> AppBuilder
    

    Registers the views of assemblies with the service locator after the platform services are set up (RegisterReactiveUIViews).

    Source

    register_reactive_ui_views_from_entry_assembly

    fn register_reactive_ui_views_from_entry_assembly(self: &Self, entry_assembly: Option<Rc<ViewAssembly>>) -> AppBuilder
    

    Registers the views of the entry assembly when there is one (the internal RegisterReactiveUIViewsFromEntryAssembly(Assembly?)); the builder unchanged otherwise.

    Source

    use_reactive_ui_with_di_container

    fn use_reactive_ui_with_di_container<C: 'static>(self: &Self, container_factory: impl Fn() -> Rc<C> + 'static, container_config: impl Fn(&Rc<C>) -> () + 'static, dependency_resolver_factory: impl Fn(&Rc<C>) -> Rc<dyn IDependencyResolver> + 'static, configure_reactive_ui: impl Fn(&ReactiveUIBuilder) -> () + 'static) -> AppBuilder
    

    Configures ReactiveUI with a dependency injection container and its resolver (UseReactiveUIWithDIContainer<TContainer>): ReactiveUI is configured as by use_reactive_ui; then the container is created by container_factory, registered with the service locator, its resolver (from dependency_resolver_factory) becomes the one of the locator, and container_config configures it.

    Source

    Trait implementations

    Availability

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