# IReactiveUIBindingBuilder

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-reactiveui/binding/builder/trait-ireactiveuibindingbuilder/

**trait** · [`ferroui-reactiveui`](/docs/0.5.0/api/ferroui-reactiveui/) · v0.5.0

```rust
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](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/binding/builder/i_reactive_ui_binding_builder.rs#L18)

## Members

- [`with_platform_module`](#function-with_platform_module)
- [`with_registration`](#function-with_registration)
- [`with_converter`](#function-with_converter)
- [`with_fallback_converter`](#function-with_fallback_converter)
- [`with_set_method_converter`](#function-with_set_method_converter)
- [`with_command_binder`](#function-with_command_binder)
- [`configure_view_locator`](#function-configure_view_locator)
- [`build_app`](#function-build_app)

<a id="function-with_platform_module"></a>

### with_platform_module

```rust
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](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/binding/builder/i_reactive_ui_binding_builder.rs#L20)

<a id="function-with_registration"></a>

### with_registration

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

Runs `configure_action` on the resolver now (`WithRegistration`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/binding/builder/i_reactive_ui_binding_builder.rs#L23)

<a id="function-with_converter"></a>

### with_converter

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

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

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/binding/builder/i_reactive_ui_binding_builder.rs#L26)

<a id="function-with_fallback_converter"></a>

### with_fallback_converter

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

Registers a fallback converter (`WithFallbackConverter`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/binding/builder/i_reactive_ui_binding_builder.rs#L29)

<a id="function-with_set_method_converter"></a>

### with_set_method_converter

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

Registers a converter of set methods (`WithSetMethodConverter`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/binding/builder/i_reactive_ui_binding_builder.rs#L32)

<a id="function-with_command_binder"></a>

### with_command_binder

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

Registers a binder of commands to controls (`WithCommandBinder`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/binding/builder/i_reactive_ui_binding_builder.rs#L35)

<a id="function-configure_view_locator"></a>

### configure_view_locator

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

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

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/binding/builder/i_reactive_ui_binding_builder.rs#L39)

<a id="function-build_app"></a>

### build_app

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

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

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/binding/builder/i_reactive_ui_binding_builder.rs#L43)

## Trait implementations

- [`IReactiveUIBindingBuilder`](/docs/0.5.0/api/ferroui-reactiveui/binding/builder/trait-ireactiveuibindingbuilder/)

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
