# NavigationViewTemplateSettings

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-controls/primitives/struct-navigationviewtemplatesettings/

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

```rust
struct NavigationViewTemplateSettings
```

The values the template of a `NavigationView` binds to
(`TemplateSettings`), which the navigation view sets. Each navigation view has its own.

WinUI's `Visibility` values are `bool`s here (`true` is `Visible`), as the `IsVisible` they are
bound to.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/primitives/navigation_view_template_settings.rs#L17)

## Members

- [`TYPE`](#assoc_const-type)
- [`to_ref`](#function-to_ref)
- [`top_padding_property`](#function-top_padding_property)
- [`overflow_button_visibility_property`](#function-overflow_button_visibility_property)
- [`pane_toggle_button_visibility_property`](#function-pane_toggle_button_visibility_property)
- [`back_button_visibility_property`](#function-back_button_visibility_property)
- [`top_pane_visibility_property`](#function-top_pane_visibility_property)
- [`left_pane_visibility_property`](#function-left_pane_visibility_property)
- [`single_selection_follows_focus_property`](#function-single_selection_follows_focus_property)
- [`pane_toggle_button_width_property`](#function-pane_toggle_button_width_property)
- [`smaller_pane_toggle_button_width_property`](#function-smaller_pane_toggle_button_width_property)
- [`open_pane_length_property`](#function-open_pane_length_property)
- [`construct`](#function-construct)
- [`new`](#function-new)
- [`top_padding`](#function-top_padding)
- [`overflow_button_visibility`](#function-overflow_button_visibility)
- [`pane_toggle_button_visibility`](#function-pane_toggle_button_visibility)
- [`back_button_visibility`](#function-back_button_visibility)
- [`top_pane_visibility`](#function-top_pane_visibility)
- [`left_pane_visibility`](#function-left_pane_visibility)
- [`single_selection_follows_focus`](#function-single_selection_follows_focus)
- [`pane_toggle_button_width`](#function-pane_toggle_button_width)
- [`smaller_pane_toggle_button_width`](#function-smaller_pane_toggle_button_width)
- [`open_pane_length`](#function-open_pane_length)

<a id="assoc_const-type"></a>

### TYPE

```rust
const TYPE: &'static $crate::TypeInfo
```

The runtime type of this class.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/primitives/navigation_view_template_settings.rs#L21)

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

### to_ref

```rust
fn to_ref(self: &Self) -> $crate::Ref<NavigationViewTemplateSettings>
```

Returns a strong reference to this object.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/primitives/navigation_view_template_settings.rs#L21)

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

### top_padding_property

```rust
fn top_padding_property() -> &'static StyledProperty<f64>
```

Defines the `TopPadding` property: the height above the pane and the content (the title
bar of WinUI's window when the content extends into it; 0 in FerroUI).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/primitives/navigation_view_template_settings.rs#L28)

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

### overflow_button_visibility_property

```rust
fn overflow_button_visibility_property() -> &'static StyledProperty<bool>
```

Defines the `OverflowButtonVisibility` property: whether the overflow button of the top pane
is shown (always `false`: the overflow of the top pane is not ported).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/primitives/navigation_view_template_settings.rs#L28)

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

### pane_toggle_button_visibility_property

```rust
fn pane_toggle_button_visibility_property() -> &'static StyledProperty<bool>
```

Defines the `PaneToggleButtonVisibility` property: whether the pane toggle button is shown.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/primitives/navigation_view_template_settings.rs#L28)

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

### back_button_visibility_property

```rust
fn back_button_visibility_property() -> &'static StyledProperty<bool>
```

Defines the `BackButtonVisibility` property: whether the back button is shown.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/primitives/navigation_view_template_settings.rs#L28)

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

### top_pane_visibility_property

```rust
fn top_pane_visibility_property() -> &'static StyledProperty<bool>
```

Defines the `TopPaneVisibility` property: whether the top pane is shown.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/primitives/navigation_view_template_settings.rs#L28)

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

### left_pane_visibility_property

```rust
fn left_pane_visibility_property() -> &'static StyledProperty<bool>
```

Defines the `LeftPaneVisibility` property: whether the left pane is shown.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/primitives/navigation_view_template_settings.rs#L28)

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

### single_selection_follows_focus_property

```rust
fn single_selection_follows_focus_property() -> &'static StyledProperty<bool>
```

Defines the `SingleSelectionFollowsFocus` property: whether the selection follows the
focus.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/primitives/navigation_view_template_settings.rs#L28)

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

### pane_toggle_button_width_property

```rust
fn pane_toggle_button_width_property() -> &'static StyledProperty<f64>
```

Defines the `PaneToggleButtonWidth` property: the width of the pane toggle button, the
compact pane length.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/primitives/navigation_view_template_settings.rs#L28)

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

### smaller_pane_toggle_button_width_property

```rust
fn smaller_pane_toggle_button_width_property() -> &'static StyledProperty<f64>
```

Defines the `SmallerPaneToggleButtonWidth` property: the compact pane length less 8, the width
of the back button and of the icon column of the items.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/primitives/navigation_view_template_settings.rs#L28)

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

### open_pane_length_property

```rust
fn open_pane_length_property() -> &'static StyledProperty<f64>
```

Defines the `OpenPaneLength` property: the open pane length, at most the width of the
navigation view.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/primitives/navigation_view_template_settings.rs#L28)

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

### construct

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

Creates the class data; see `ferroui_base::FerroObject::construct`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/primitives/navigation_view_template_settings.rs#L99)

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

### new

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

Creates the settings of a navigation view.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/primitives/navigation_view_template_settings.rs#L104)

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

### top_padding

```rust
fn top_padding(self: &Self) -> f64
```

Gets the height above the pane and the content.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/primitives/navigation_view_template_settings.rs#L109)

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

### overflow_button_visibility

```rust
fn overflow_button_visibility(self: &Self) -> bool
```

Gets whether the overflow button of the top pane is shown.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/primitives/navigation_view_template_settings.rs#L114)

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

### pane_toggle_button_visibility

```rust
fn pane_toggle_button_visibility(self: &Self) -> bool
```

Gets whether the pane toggle button is shown.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/primitives/navigation_view_template_settings.rs#L119)

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

### back_button_visibility

```rust
fn back_button_visibility(self: &Self) -> bool
```

Gets whether the back button is shown.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/primitives/navigation_view_template_settings.rs#L124)

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

### top_pane_visibility

```rust
fn top_pane_visibility(self: &Self) -> bool
```

Gets whether the top pane is shown.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/primitives/navigation_view_template_settings.rs#L129)

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

### left_pane_visibility

```rust
fn left_pane_visibility(self: &Self) -> bool
```

Gets whether the left pane is shown.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/primitives/navigation_view_template_settings.rs#L134)

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

### single_selection_follows_focus

```rust
fn single_selection_follows_focus(self: &Self) -> bool
```

Gets whether the selection follows the focus.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/primitives/navigation_view_template_settings.rs#L139)

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

### pane_toggle_button_width

```rust
fn pane_toggle_button_width(self: &Self) -> f64
```

Gets the width of the pane toggle button.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/primitives/navigation_view_template_settings.rs#L144)

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

### smaller_pane_toggle_button_width

```rust
fn smaller_pane_toggle_button_width(self: &Self) -> f64
```

Gets the compact pane length less 8.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/primitives/navigation_view_template_settings.rs#L149)

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

### open_pane_length

```rust
fn open_pane_length(self: &Self) -> f64
```

Gets the open pane length, at most the width of the navigation view.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/primitives/navigation_view_template_settings.rs#L154)

## 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`
- [`FerroObjectImplExt`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimplext/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- `Deref`
- [`Upcast<T>`](/docs/0.5.0/api/ferroui-base/trait-upcast/)
- [`Upcast<NavigationViewTemplateSettings>`](/docs/0.5.0/api/ferroui-base/trait-upcast/)
- [`StaticType`](/docs/0.5.0/api/ferroui-base/trait-statictype/)
- [`ObjectType`](/docs/0.5.0/api/ferroui-base/trait-objecttype/)
- [`Subclassable<T>`](/docs/0.5.0/api/ferroui-base/trait-subclassable/)
- [`DefaultConstructible`](/docs/0.5.0/api/ferroui-base/trait-defaultconstructible/)
- [`FerroObjectImpl`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimpl/)

## Availability

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