# ReflectionBindingExtension

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-markup-xaml/markup_extensions/struct-reflectionbindingextension/

**struct** · [`ferroui-markup-xaml`](/docs/0.5.0/api/ferroui-markup-xaml/) · v0.5.0

```rust
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](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Markup/FerroUI.Markup.Xaml/markup_extensions/reflection_binding_extension.rs#L18)

## Members

- [`new`](#function-new)
- [`with_path`](#function-with_path)
- [`base`](#function-base)
- [`provide_value`](#function-provide_value)

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

### new

```rust
fn new() -> Rc<Self>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Markup/FerroUI.Markup.Xaml/markup_extensions/reflection_binding_extension.rs#L23)

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

### with_path

```rust
fn with_path(path: &str) -> Rc<Self>
```

Creates the extension with a path.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Markup/FerroUI.Markup.Xaml/markup_extensions/reflection_binding_extension.rs#L28)

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

### base

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

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

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Markup/FerroUI.Markup.Xaml/markup_extensions/reflection_binding_extension.rs#L33)

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

### provide_value

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

Creates the binding the extension describes.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Markup/FerroUI.Markup.Xaml/markup_extensions/reflection_binding_extension.rs#L38)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- [`Receiver`](/docs/0.5.0/api/ferroui-system/task/oneshot/struct-receiver/)
- `Any`
- [`AnyValue`](/docs/0.5.0/api/ferroui-base/trait-anyvalue/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- `Deref`
- [`BindingBase`](/docs/0.5.0/api/ferroui-base/data/trait-bindingbase/)
- `PartialEq`
- [`MarkupTyped`](/docs/0.5.0/api/ferroui-base/metadata/trait-markuptyped/)

## Availability

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