# ITypeDescriptorContext

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-markup-xaml/converters/trait-itypedescriptorcontext/

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

```rust
trait ITypeDescriptorContext: IServiceProvider
```

The context a type converter converts in. For markup it is the service
provider of the place the value is converted for: base URI, parent
stack, type resolver.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Markup/FerroUI.Markup.Xaml/converters/type_converter.rs#L16)

## Members

- [`instance`](#function-instance)

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

### instance

```rust
fn instance(self: &Self) -> Option<BoxedValue>
```

The object the conversion is performed for, if the context knows it.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Markup/FerroUI.Markup.Xaml/converters/type_converter.rs#L18)

## Trait implementations

- [`ITypeDescriptorContext`](/docs/0.5.0/api/ferroui-markup-xaml/converters/trait-itypedescriptorcontext/)

## Availability

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