# IUriContext

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

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

```rust
trait IUriContext
```

Gives access to the base URI of the document being loaded: the absolute
URL relative references of the document are resolved against
(`UriRef::resolve`).

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

## Members

- [`base_uri`](#function-base_uri)
- [`set_base_uri`](#function-set_base_uri)

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

### base_uri

```rust
fn base_uri(self: &Self) -> Option<url::Url>
```



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

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

### set_base_uri

```rust
fn set_base_uri(self: &Self, value: Option<url::Url>)
```



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

## Trait implementations

- [`IUriContext`](/docs/0.5.0/api/ferroui-markup-xaml/trait-iuricontext/)

## Availability

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