# SelectingMultiPage

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

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

```rust
struct SelectingMultiPage
```

Base class for multi-page controls with index-based selection.

This class is abstract: its abstract member panics unless overridden.

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

## Members

- [`TYPE`](#assoc_const-type)
- [`to_ref`](#function-to_ref)
- [`apply_selected_index`](#function-apply_selected_index)
- [`selected_index_property`](#function-selected_index_property)
- [`selected_page_property`](#function-selected_page_property)
- [`selection_changed_event`](#function-selection_changed_event)
- [`construct`](#function-construct)
- [`selected_index`](#function-selected_index)
- [`set_selected_index`](#function-set_selected_index)
- [`selected_page`](#function-selected_page)
- [`selection_changed`](#function-selection_changed)
- [`commit_selection`](#function-commit_selection)
- [`store_selected_index`](#function-store_selected_index)
- [`resolve_page_at_index`](#function-resolve_page_at_index)

<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/selecting_multi_page.rs#L28)

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

### to_ref

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

Returns a strong reference to this object.

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

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

### apply_selected_index

```rust
fn apply_selected_index(self: &Self, index: i32)
```

Applies the requested index change.

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

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

### selected_index_property

```rust
fn selected_index_property() -> &'static DirectProperty<SelectingMultiPage, i32>
```

Defines the `SelectedIndex` property.

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

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

### selected_page_property

```rust
fn selected_page_property() -> &'static DirectProperty<SelectingMultiPage, Option<Ref<Page>>>
```

Defines the `SelectedPage` property.

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

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

### selection_changed_event

```rust
fn selection_changed_event() -> &'static RoutedEvent<PageSelectionChangedEventArgs>
```

Defines the `SelectionChanged` routed event.

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

<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/selecting_multi_page.rs#L84)

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

### selected_index

```rust
fn selected_index(self: &Self) -> i32
```

Gets or sets the zero-based index of the selected page.

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

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

### set_selected_index

```rust
fn set_selected_index(self: &Self, value: i32)
```



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

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

### selected_page

```rust
fn selected_page(self: &Self) -> Option<Ref<Page>>
```

Gets the currently selected page, or `None` if no page is selected.

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

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

### selection_changed

```rust
fn selection_changed(self: &Self, handler: impl Fn(&Interactive, &PageSelectionChangedEventArgs) -> () + 'static) -> RoutedEventHandlerToken
```

Raised when the selected page changes.

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

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

### commit_selection

```rust
fn commit_selection(self: &Self, new_index: i32, new_page: Option<Ref<Page>>, navigation_type: NavigationType)
```

Commits a selection change and fires lifecycle events on the
outgoing and incoming pages.

Raises `SelectionChanged`, then `NavigatedFrom` on the outgoing page
and `NavigatedTo` on the incoming page. If the incoming and outgoing
pages are the same object no events are fired. Subclasses should
call this method rather than modifying selection state directly.

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

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

### store_selected_index

```rust
fn store_selected_index(self: &Self, index: i32)
```

Stores the selected index without routing through a child control.

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

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

### resolve_page_at_index

```rust
fn resolve_page_at_index(self: &Self, index: i32) -> Option<Ref<Page>>
```

Returns the page at `index` from the `Pages` collection, or `None`
if the index is out of range.

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

## 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<SelectingMultiPage>`](/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/)
- [`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/)
- [`LayoutableImpl`](/docs/0.5.0/api/ferroui-base/layout/trait-layoutableimpl/)
- [`InteractiveImpl`](/docs/0.5.0/api/ferroui-base/interactivity/trait-interactiveimpl/)
- [`InputElementImpl`](/docs/0.5.0/api/ferroui-base/input/trait-inputelementimpl/)
- [`ControlImpl`](/docs/0.5.0/api/ferroui-controls/trait-controlimpl/)
- [`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/)

## Availability

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