# WinUIXamlOptions

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

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

```rust
struct WinUIXamlOptions
```

Per-document compatibility policy; never stored globally. Custom mappings take precedence
over built-in aliases. Duplicate/conflicting mappings are rejected before any edits.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Markup/FerroUI.Markup.Xaml.WinUI/importer/options.rs#L106)

## Members

- [`namespaces`](#struct_field-namespaces)
- [`types`](#struct_field-types)
- [`members`](#struct_field-members)
- [`theme_resources`](#struct_field-theme_resources)
- [`x_bind`](#struct_field-x_bind)
- [`style_resources`](#struct_field-style_resources)
- [`asset_base_uri`](#struct_field-asset_base_uri)
- [`new`](#function-new)
- [`for_winui_theme`](#function-for_winui_theme)

<a id="struct_field-namespaces"></a>

### namespaces

```rust
namespaces: Vec<WinUIXamlNamespaceMapping>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Markup/FerroUI.Markup.Xaml.WinUI/importer/options.rs#L107)

<a id="struct_field-types"></a>

### types

```rust
types: Vec<WinUIXamlTypeMapping>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Markup/FerroUI.Markup.Xaml.WinUI/importer/options.rs#L108)

<a id="struct_field-members"></a>

### members

```rust
members: Vec<WinUIXamlMemberMapping>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Markup/FerroUI.Markup.Xaml.WinUI/importer/options.rs#L109)

<a id="struct_field-theme_resources"></a>

### theme_resources

```rust
theme_resources: WinUIThemeResourcePolicy
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Markup/FerroUI.Markup.Xaml.WinUI/importer/options.rs#L110)

<a id="struct_field-x_bind"></a>

### x_bind

```rust
x_bind: WinUIXBindPolicy
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Markup/FerroUI.Markup.Xaml.WinUI/importer/options.rs#L111)

<a id="struct_field-style_resources"></a>

### style_resources

```rust
style_resources: Vec<String>
```

WinUI `Style` resource keys explicitly known to be ported `ControlTheme` resources.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Markup/FerroUI.Markup.Xaml.WinUI/importer/options.rs#L113)

<a id="struct_field-asset_base_uri"></a>

### asset_base_uri

```rust
asset_base_uri: Option<String>
```

Replaces `ms-appx:///` in resource-bearing URI attributes. For example,
`Some("ferres://WinUIGallery/".into())`. Must be an absolute URI ending in `/`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Markup/FerroUI.Markup.Xaml.WinUI/importer/options.rs#L116)

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

### new

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Markup/FerroUI.Markup.Xaml.WinUI/importer/options.rs#L120)

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

### for_winui_theme

```rust
fn for_winui_theme() -> Self
```

Policy for an application that installs `ferroui-themes-winui`. These keys exist as
`ControlTheme` resources in that crate. This call does not install the theme.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Markup/FerroUI.Markup.Xaml.WinUI/importer/options.rs#L126)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- [`PropertyValue`](/docs/0.5.0/api/ferroui-base/trait-propertyvalue/)
- [`AnyValue`](/docs/0.5.0/api/ferroui-base/trait-anyvalue/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- `Clone`
- `Debug`
- `Default`
- `StructuralPartialEq`
- `PartialEq`
- `Eq`

## Availability

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