FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    IReactiveUIBindingBuilder

    trait · ferroui-reactiveui · v0.5.0

    trait IReactiveUIBindingBuilder: IAppBuilder
    

    Configures the services, converters and platform modules of ReactiveUI.Binding, then builds the application (IReactiveUIBindingBuilder).

    Deviation (DEVIATIONS.md, ReactiveUI): the trait is object safe, so its methods take trait objects and return &dyn IReactiveUIBindingBuilder. WithCoreServices, which upstream redeclares to return this builder, is IAppBuilder::with_core_services; the inherent methods of ReactiveUIBindingBuilder return the builder itself, and BuilderMixins continues a chain from a &dyn IAppBuilder.

    View source

    Members

    with_platform_module

    fn with_platform_module(self: &Self, module: Rc<dyn IModule>) -> &dyn IReactiveUIBindingBuilder
    

    Adds the module of a platform, applied at build time (WithPlatformModule<T>(T)).

    Source

    with_registration

    fn with_registration(self: &Self, configure_action: &dyn Fn(&dyn IMutableDependencyResolver) -> ()) -> &dyn IReactiveUIBindingBuilder
    

    Runs configure_action on the resolver now (WithRegistration).

    Source

    with_converter

    fn with_converter(self: &Self, converter: Rc<dyn IBindingTypeConverter>) -> &dyn IReactiveUIBindingBuilder
    

    Registers a converter of a pair of types (WithConverter).

    Source

    with_fallback_converter

    fn with_fallback_converter(self: &Self, converter: Rc<dyn IBindingFallbackConverter>) -> &dyn IReactiveUIBindingBuilder
    

    Registers a fallback converter (WithFallbackConverter).

    Source

    with_set_method_converter

    fn with_set_method_converter(self: &Self, converter: Rc<dyn ISetMethodBindingConverter>) -> &dyn IReactiveUIBindingBuilder
    

    Registers a converter of set methods (WithSetMethodConverter).

    Source

    with_command_binder

    fn with_command_binder(self: &Self, binder: Rc<dyn ICreatesCommandBinding>) -> &dyn IReactiveUIBindingBuilder
    

    Registers a binder of commands to controls (WithCommandBinder).

    Source

    configure_view_locator

    fn configure_view_locator(self: &Self, configure: &dyn Fn(&ViewMappingBuilder<'_>) -> ()) -> &dyn IReactiveUIBindingBuilder
    

    Registers a DefaultViewLocator with the mappings configure adds (ConfigureViewLocator).

    Source

    build_app

    fn build_app(self: &Self) -> &dyn IReactiveUIBindingInstance
    

    Builds the application, publishes the converter service and marks ReactiveUI.Binding initialized (BuildApp).

    Source

    Trait implementations

    Availability

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