# TabbedPage

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-controls/page/struct-tabbedpage/

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

```rust
struct TabbedPage
```

A page that displays its child pages through a tab strip.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/page/tabbed_page.rs#L61)

## Members

- [`TYPE`](#assoc_const-type)
- [`to_ref`](#function-to_ref)
- [`tab_placement_property`](#function-tab_placement_property)
- [`is_keyboard_navigation_enabled_property`](#function-is_keyboard_navigation_enabled_property)
- [`is_gesture_enabled_property`](#function-is_gesture_enabled_property)
- [`page_transition_property`](#function-page_transition_property)
- [`indicator_template_property`](#function-indicator_template_property)
- [`is_tab_enabled_property`](#function-is_tab_enabled_property)
- [`construct`](#function-construct)
- [`new`](#function-new)
- [`get_is_tab_enabled`](#function-get_is_tab_enabled)
- [`set_is_tab_enabled`](#function-set_is_tab_enabled)
- [`tab_placement`](#function-tab_placement)
- [`set_tab_placement`](#function-set_tab_placement)
- [`is_keyboard_navigation_enabled`](#function-is_keyboard_navigation_enabled)
- [`set_is_keyboard_navigation_enabled`](#function-set_is_keyboard_navigation_enabled)
- [`is_gesture_enabled`](#function-is_gesture_enabled)
- [`set_is_gesture_enabled`](#function-set_is_gesture_enabled)
- [`page_transition`](#function-page_transition)
- [`set_page_transition`](#function-set_page_transition)
- [`indicator_template`](#function-indicator_template)
- [`set_indicator_template`](#function-set_indicator_template)

<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/page/tabbed_page.rs#L76)

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

### to_ref

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

Returns a strong reference to this object.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/page/tabbed_page.rs#L76)

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

### tab_placement_property

```rust
fn tab_placement_property() -> &'static StyledProperty<TabPlacement>
```

Defines the `TabPlacement` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/page/tabbed_page.rs#L363)

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

### is_keyboard_navigation_enabled_property

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

Defines the `IsKeyboardNavigationEnabled` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/page/tabbed_page.rs#L363)

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

### is_gesture_enabled_property

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

Defines the `IsGestureEnabled` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/page/tabbed_page.rs#L363)

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

### page_transition_property

```rust
fn page_transition_property() -> &'static StyledProperty<Option<Rc<dyn IPageTransition>>>
```

Defines the `PageTransition` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/page/tabbed_page.rs#L363)

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

### indicator_template_property

```rust
fn indicator_template_property() -> &'static StyledProperty<Option<Rc<dyn IDataTemplate>>>
```

Defines the `IndicatorTemplate` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/page/tabbed_page.rs#L363)

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

### is_tab_enabled_property

```rust
fn is_tab_enabled_property() -> &'static AttachedProperty<bool>
```

Defines the `IsTabEnabled` attached property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/page/tabbed_page.rs#L363)

<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/page/tabbed_page.rs#L419)

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

### new

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

Initializes a new instance of the `TabbedPage` class.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/page/tabbed_page.rs#L436)

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

### get_is_tab_enabled

```rust
fn get_is_tab_enabled(page: &Page) -> bool
```

Gets the value of the `IsTabEnabled` attached property for a page:
true if the tab is enabled.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/page/tabbed_page.rs#L442)

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

### set_is_tab_enabled

```rust
fn set_is_tab_enabled(page: &Page, value: bool)
```

Sets the value of the `IsTabEnabled` attached property for a page.
Disabled tabs are skipped during keyboard and swipe navigation.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/page/tabbed_page.rs#L448)

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

### tab_placement

```rust
fn tab_placement(self: &Self) -> TabPlacement
```

Gets or sets the tab bar placement.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/page/tabbed_page.rs#L453)

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

### set_tab_placement

```rust
fn set_tab_placement(self: &Self, value: TabPlacement)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/page/tabbed_page.rs#L457)

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

### is_keyboard_navigation_enabled

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

Gets or sets whether keyboard navigation can switch tabs.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/page/tabbed_page.rs#L462)

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

### set_is_keyboard_navigation_enabled

```rust
fn set_is_keyboard_navigation_enabled(self: &Self, value: bool)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/page/tabbed_page.rs#L466)

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

### is_gesture_enabled

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

Gets or sets whether swipe gestures can be used to navigate between
tabs.

Defaults to false because tab strips do not respond to swipe
gestures on most platforms (iOS, desktop). Enable this only when the
host platform and the content inside each tab page do not conflict
with horizontal swipe input.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/page/tabbed_page.rs#L477)

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

### set_is_gesture_enabled

```rust
fn set_is_gesture_enabled(self: &Self, value: bool)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/page/tabbed_page.rs#L481)

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

### page_transition

```rust
fn page_transition(self: &Self) -> Option<Rc<dyn IPageTransition>>
```

Gets or sets the page transition to use when switching tabs.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/page/tabbed_page.rs#L486)

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

### set_page_transition

```rust
fn set_page_transition(self: &Self, value: Option<Rc<dyn IPageTransition>>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/page/tabbed_page.rs#L490)

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

### indicator_template

```rust
fn indicator_template(self: &Self) -> Option<Rc<dyn IDataTemplate>>
```

Gets or sets the data template used to render the selection
indicator on each tab.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/page/tabbed_page.rs#L496)

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

### set_indicator_template

```rust
fn set_indicator_template(self: &Self, value: Option<Rc<dyn IDataTemplate>>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/page/tabbed_page.rs#L500)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`TemplatedControlImplExt`](/docs/0.5.0/api/ferroui-controls/primitives/trait-templatedcontrolimplext/)
- [`ControlImplExt`](/docs/0.5.0/api/ferroui-controls/trait-controlimplext/)
- [`PageImplExt`](/docs/0.5.0/api/ferroui-controls/page/trait-pageimplext/)
- [`MultiPageImplExt`](/docs/0.5.0/api/ferroui-controls/page/trait-multipageimplext/)
- [`SelectingMultiPageImplExt`](/docs/0.5.0/api/ferroui-controls/page/trait-selectingmultipageimplext/)
- `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`
- [`InputElementImplExt`](/docs/0.5.0/api/ferroui-base/input/trait-inputelementimplext/)
- [`InteractiveImplExt`](/docs/0.5.0/api/ferroui-base/interactivity/trait-interactiveimplext/)
- [`LayoutableImplExt`](/docs/0.5.0/api/ferroui-base/layout/trait-layoutableimplext/)
- [`FerroObjectImplExt`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimplext/)
- [`StyledElementImplExt`](/docs/0.5.0/api/ferroui-base/trait-styledelementimplext/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- [`VisualImplExt`](/docs/0.5.0/api/ferroui-base/trait-visualimplext/)
- `ErasedDestructor`
- `IntoEither`
- `Deref`
- [`Upcast<T>`](/docs/0.5.0/api/ferroui-base/trait-upcast/)
- [`Upcast<TabbedPage>`](/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/)
- [`LayoutableImpl`](/docs/0.5.0/api/ferroui-base/layout/trait-layoutableimpl/)
- [`InteractiveImpl`](/docs/0.5.0/api/ferroui-base/interactivity/trait-interactiveimpl/)
- [`FerroObjectImpl`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimpl/)
- [`StyledElementImpl`](/docs/0.5.0/api/ferroui-base/trait-styledelementimpl/)
- [`VisualImpl`](/docs/0.5.0/api/ferroui-base/trait-visualimpl/)
- [`InputElementImpl`](/docs/0.5.0/api/ferroui-base/input/trait-inputelementimpl/)
- [`TemplatedControlImpl`](/docs/0.5.0/api/ferroui-controls/primitives/trait-templatedcontrolimpl/)
- [`PageImpl`](/docs/0.5.0/api/ferroui-controls/page/trait-pageimpl/)
- [`MultiPageImpl`](/docs/0.5.0/api/ferroui-controls/page/trait-multipageimpl/)
- [`SelectingMultiPageImpl`](/docs/0.5.0/api/ferroui-controls/page/trait-selectingmultipageimpl/)
- [`ControlImpl`](/docs/0.5.0/api/ferroui-controls/trait-controlimpl/)

## Availability

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