# PagerControl

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

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

```rust
struct PagerControl
```

A control to move through the pages of a paged content (WinUI's `PagerControl`): buttons to
the first, previous, next and last page around a combo box of the page numbers, a number box
to type one, or a button for each page (`DisplayMode`). `NumberOfPages` is -1 while the number
of pages is not known; `SelectedPageIndex` is the index of the page, from 0, kept in the range
of the pages, and its changes raise `SelectedIndexChanged`.

The template is the control theme of the WinUI theme (`Controls/PagerControl.xaml`, from
WinUI's `PagerControl.xaml`), with WinUI's parts `FirstPageButton`, `PreviousPageButton`,
`NextPageButton`, `LastPageButton`, `ComboBoxDisplay`, `NumberBoxDisplay`,
`NumberPanelItemsRepeater` and `NumberPanelCurrentPageIndicator`. The control sets WinUI's
visual states as pseudo-classes: `:numberbox`, `:combobox` and `:numberpanel` (the display
mode), `:infinite` (InfiniteItems), and for each button `:<button>collapsed`,
`:<button>hidden` and `:<button>disabled` (`:firstcollapsed`, `:nexthidden`, ...). The
Fluent and Simple themes have no template for it (docs/porting/winui-controls.md, section 5.1).

Differences (docs/porting/winui-controls.md, G2): the number panel is an items control whose
panel is a horizontal stack panel, where WinUI has an `ItemsRepeater` with a `StackLayout`
(`ferroui-controls` cannot depend on the repeater crate); the indicator of the current page
moves without WinUI's `RepositionThemeTransition`.

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

## Members

- [`TYPE`](#assoc_const-type)
- [`to_ref`](#function-to_ref)
- [`display_mode_property`](#function-display_mode_property)
- [`number_of_pages_property`](#function-number_of_pages_property)
- [`selected_page_index_property`](#function-selected_page_index_property)
- [`first_button_visibility_property`](#function-first_button_visibility_property)
- [`previous_button_visibility_property`](#function-previous_button_visibility_property)
- [`next_button_visibility_property`](#function-next_button_visibility_property)
- [`last_button_visibility_property`](#function-last_button_visibility_property)
- [`first_button_command_property`](#function-first_button_command_property)
- [`previous_button_command_property`](#function-previous_button_command_property)
- [`next_button_command_property`](#function-next_button_command_property)
- [`last_button_command_property`](#function-last_button_command_property)
- [`pager_input_command_property`](#function-pager_input_command_property)
- [`first_button_style_property`](#function-first_button_style_property)
- [`previous_button_style_property`](#function-previous_button_style_property)
- [`next_button_style_property`](#function-next_button_style_property)
- [`last_button_style_property`](#function-last_button_style_property)
- [`button_panel_always_show_first_last_page_index_property`](#function-button_panel_always_show_first_last_page_index_property)
- [`prefix_text_property`](#function-prefix_text_property)
- [`suffix_text_property`](#function-suffix_text_property)
- [`template_settings_property`](#function-template_settings_property)
- [`construct`](#function-construct)
- [`new`](#function-new)
- [`display_mode`](#function-display_mode)
- [`set_display_mode`](#function-set_display_mode)
- [`number_of_pages`](#function-number_of_pages)
- [`set_number_of_pages`](#function-set_number_of_pages)
- [`selected_page_index`](#function-selected_page_index)
- [`set_selected_page_index`](#function-set_selected_page_index)
- [`first_button_visibility`](#function-first_button_visibility)
- [`set_first_button_visibility`](#function-set_first_button_visibility)
- [`previous_button_visibility`](#function-previous_button_visibility)
- [`set_previous_button_visibility`](#function-set_previous_button_visibility)
- [`next_button_visibility`](#function-next_button_visibility)
- [`set_next_button_visibility`](#function-set_next_button_visibility)
- [`last_button_visibility`](#function-last_button_visibility)
- [`set_last_button_visibility`](#function-set_last_button_visibility)
- [`first_button_command`](#function-first_button_command)
- [`set_first_button_command`](#function-set_first_button_command)
- [`previous_button_command`](#function-previous_button_command)
- [`set_previous_button_command`](#function-set_previous_button_command)
- [`next_button_command`](#function-next_button_command)
- [`set_next_button_command`](#function-set_next_button_command)
- [`last_button_command`](#function-last_button_command)
- [`set_last_button_command`](#function-set_last_button_command)
- [`pager_input_command`](#function-pager_input_command)
- [`set_pager_input_command`](#function-set_pager_input_command)
- [`first_button_style`](#function-first_button_style)
- [`set_first_button_style`](#function-set_first_button_style)
- [`previous_button_style`](#function-previous_button_style)
- [`set_previous_button_style`](#function-set_previous_button_style)
- [`next_button_style`](#function-next_button_style)
- [`set_next_button_style`](#function-set_next_button_style)
- [`last_button_style`](#function-last_button_style)
- [`set_last_button_style`](#function-set_last_button_style)
- [`button_panel_always_show_first_last_page_index`](#function-button_panel_always_show_first_last_page_index)
- [`set_button_panel_always_show_first_last_page_index`](#function-set_button_panel_always_show_first_last_page_index)
- [`prefix_text`](#function-prefix_text)
- [`set_prefix_text`](#function-set_prefix_text)
- [`suffix_text`](#function-suffix_text)
- [`set_suffix_text`](#function-set_suffix_text)
- [`template_settings`](#function-template_settings)
- [`selected_index_changed`](#function-selected_index_changed)

<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/pager_control.rs#L197)

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

### to_ref

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

Returns a strong reference to this object.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/pager_control.rs#L197)

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

### display_mode_property

```rust
fn display_mode_property() -> &'static StyledProperty<PagerControlDisplayMode>
```

Defines the `DisplayMode` property: how the pages are shown. `Auto` by default.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/pager_control.rs#L432)

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

### number_of_pages_property

```rust
fn number_of_pages_property() -> &'static StyledProperty<i32>
```

Defines the `NumberOfPages` property: the number of pages, -1 while it is not known. 0 by
default.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/pager_control.rs#L432)

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

### selected_page_index_property

```rust
fn selected_page_index_property() -> &'static StyledProperty<i32>
```

Defines the `SelectedPageIndex` property: the index of the selected page, from 0.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/pager_control.rs#L432)

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

### first_button_visibility_property

```rust
fn first_button_visibility_property() -> &'static StyledProperty<PagerControlButtonVisibility>
```

Defines the `FirstButtonVisibility` property: when the button to the first page is
shown.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/pager_control.rs#L432)

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

### previous_button_visibility_property

```rust
fn previous_button_visibility_property() -> &'static StyledProperty<PagerControlButtonVisibility>
```

Defines the `PreviousButtonVisibility` property: when the button to the previous page is
shown.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/pager_control.rs#L432)

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

### next_button_visibility_property

```rust
fn next_button_visibility_property() -> &'static StyledProperty<PagerControlButtonVisibility>
```

Defines the `NextButtonVisibility` property: when the button to the next page is shown.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/pager_control.rs#L432)

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

### last_button_visibility_property

```rust
fn last_button_visibility_property() -> &'static StyledProperty<PagerControlButtonVisibility>
```

Defines the `LastButtonVisibility` property: when the button to the last page is shown.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/pager_control.rs#L432)

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

### first_button_command_property

```rust
fn first_button_command_property() -> &'static StyledProperty<Option<Rc<dyn ICommand>>>
```

Defines the `FirstButtonCommand` property: the command the button to the first page
executes after it moves to the page.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/pager_control.rs#L432)

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

### previous_button_command_property

```rust
fn previous_button_command_property() -> &'static StyledProperty<Option<Rc<dyn ICommand>>>
```

Defines the `PreviousButtonCommand` property: the command the button to the previous
page executes after it moves to the page.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/pager_control.rs#L432)

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

### next_button_command_property

```rust
fn next_button_command_property() -> &'static StyledProperty<Option<Rc<dyn ICommand>>>
```

Defines the `NextButtonCommand` property: the command the button to the next page
executes after it moves to the page.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/pager_control.rs#L432)

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

### last_button_command_property

```rust
fn last_button_command_property() -> &'static StyledProperty<Option<Rc<dyn ICommand>>>
```

Defines the `LastButtonCommand` property: the command the button to the last page
executes after it moves to the page.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/pager_control.rs#L432)

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

### pager_input_command_property

```rust
fn pager_input_command_property() -> &'static StyledProperty<Option<Rc<dyn ICommand>>>
```

Defines the `PagerInputCommand` property, which WinUI declares and never executes.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/pager_control.rs#L432)

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

### first_button_style_property

```rust
fn first_button_style_property() -> &'static StyledProperty<Option<Ref<ControlTheme>>>
```

Defines the `FirstButtonStyle` property: the control theme of the button to the first
page.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/pager_control.rs#L432)

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

### previous_button_style_property

```rust
fn previous_button_style_property() -> &'static StyledProperty<Option<Ref<ControlTheme>>>
```

Defines the `PreviousButtonStyle` property: the control theme of the button to the
previous page.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/pager_control.rs#L432)

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

### next_button_style_property

```rust
fn next_button_style_property() -> &'static StyledProperty<Option<Ref<ControlTheme>>>
```

Defines the `NextButtonStyle` property: the control theme of the button to the next
page.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/pager_control.rs#L432)

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

### last_button_style_property

```rust
fn last_button_style_property() -> &'static StyledProperty<Option<Ref<ControlTheme>>>
```

Defines the `LastButtonStyle` property: the control theme of the button to the last
page.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/pager_control.rs#L432)

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

### button_panel_always_show_first_last_page_index_property

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

Defines the `ButtonPanelAlwaysShowFirstLastPageIndex` property: whether the button panel
always shows the buttons of the first and the last page. `true` by default.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/pager_control.rs#L432)

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

### prefix_text_property

```rust
fn prefix_text_property() -> &'static StyledProperty<String>
```

Defines the `PrefixText` property: the text before the combo box or the number box
("Page" when the template is applied without one).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/pager_control.rs#L432)

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

### suffix_text_property

```rust
fn suffix_text_property() -> &'static StyledProperty<String>
```

Defines the `SuffixText` property: the text after the combo box or the number box, before
the number of pages ("of" when the template is applied without one).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/pager_control.rs#L432)

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

### template_settings_property

```rust
fn template_settings_property() -> &'static StyledProperty<Option<Ref<PagerControlTemplateSettings>>>
```

Defines the `TemplateSettings` property: the page numbers and the number panel items the
template binds to.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/pager_control.rs#L432)

<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/pager_control.rs#L598)

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

### new

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

Creates a pager without pages.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/pager_control.rs#L611)

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

### display_mode

```rust
fn display_mode(self: &Self) -> PagerControlDisplayMode
```

Gets how the pages are shown.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/pager_control.rs#L618)

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

### set_display_mode

```rust
fn set_display_mode(self: &Self, value: PagerControlDisplayMode)
```

Sets how the pages are shown.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/pager_control.rs#L623)

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

### number_of_pages

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

Gets the number of pages, -1 while it is not known.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/pager_control.rs#L628)

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

### set_number_of_pages

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

Sets the number of pages, -1 while it is not known.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/pager_control.rs#L633)

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

### selected_page_index

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

Gets the index of the selected page.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/pager_control.rs#L638)

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

### set_selected_page_index

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

Sets the index of the selected page; raises `SelectedIndexChanged`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/pager_control.rs#L643)

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

### first_button_visibility

```rust
fn first_button_visibility(self: &Self) -> PagerControlButtonVisibility
```

Gets when the button to the first page is shown.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/pager_control.rs#L648)

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

### set_first_button_visibility

```rust
fn set_first_button_visibility(self: &Self, value: PagerControlButtonVisibility)
```

Sets when the button to the first page is shown.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/pager_control.rs#L653)

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

### previous_button_visibility

```rust
fn previous_button_visibility(self: &Self) -> PagerControlButtonVisibility
```

Gets when the button to the previous page is shown.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/pager_control.rs#L658)

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

### set_previous_button_visibility

```rust
fn set_previous_button_visibility(self: &Self, value: PagerControlButtonVisibility)
```

Sets when the button to the previous page is shown.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/pager_control.rs#L663)

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

### next_button_visibility

```rust
fn next_button_visibility(self: &Self) -> PagerControlButtonVisibility
```

Gets when the button to the next page is shown.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/pager_control.rs#L668)

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

### set_next_button_visibility

```rust
fn set_next_button_visibility(self: &Self, value: PagerControlButtonVisibility)
```

Sets when the button to the next page is shown.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/pager_control.rs#L673)

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

### last_button_visibility

```rust
fn last_button_visibility(self: &Self) -> PagerControlButtonVisibility
```

Gets when the button to the last page is shown.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/pager_control.rs#L678)

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

### set_last_button_visibility

```rust
fn set_last_button_visibility(self: &Self, value: PagerControlButtonVisibility)
```

Sets when the button to the last page is shown.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/pager_control.rs#L683)

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

### first_button_command

```rust
fn first_button_command(self: &Self) -> Option<Rc<dyn ICommand>>
```

Gets the command of the button to the first page.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/pager_control.rs#L688)

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

### set_first_button_command

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

Sets the command of the button to the first page.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/pager_control.rs#L693)

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

### previous_button_command

```rust
fn previous_button_command(self: &Self) -> Option<Rc<dyn ICommand>>
```

Gets the command of the button to the previous page.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/pager_control.rs#L698)

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

### set_previous_button_command

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

Sets the command of the button to the previous page.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/pager_control.rs#L703)

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

### next_button_command

```rust
fn next_button_command(self: &Self) -> Option<Rc<dyn ICommand>>
```

Gets the command of the button to the next page.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/pager_control.rs#L708)

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

### set_next_button_command

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

Sets the command of the button to the next page.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/pager_control.rs#L713)

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

### last_button_command

```rust
fn last_button_command(self: &Self) -> Option<Rc<dyn ICommand>>
```

Gets the command of the button to the last page.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/pager_control.rs#L718)

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

### set_last_button_command

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

Sets the command of the button to the last page.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/pager_control.rs#L723)

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

### pager_input_command

```rust
fn pager_input_command(self: &Self) -> Option<Rc<dyn ICommand>>
```

Gets the command WinUI declares as `PagerInputCommand` (never executed).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/pager_control.rs#L728)

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

### set_pager_input_command

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

Sets the command WinUI declares as `PagerInputCommand` (never executed).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/pager_control.rs#L733)

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

### first_button_style

```rust
fn first_button_style(self: &Self) -> Option<Ref<ControlTheme>>
```

Gets the control theme of the button to the first page.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/pager_control.rs#L738)

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

### set_first_button_style

```rust
fn set_first_button_style(self: &Self, value: Option<Ref<ControlTheme>>)
```

Sets the control theme of the button to the first page.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/pager_control.rs#L743)

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

### previous_button_style

```rust
fn previous_button_style(self: &Self) -> Option<Ref<ControlTheme>>
```

Gets the control theme of the button to the previous page.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/pager_control.rs#L748)

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

### set_previous_button_style

```rust
fn set_previous_button_style(self: &Self, value: Option<Ref<ControlTheme>>)
```

Sets the control theme of the button to the previous page.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/pager_control.rs#L753)

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

### next_button_style

```rust
fn next_button_style(self: &Self) -> Option<Ref<ControlTheme>>
```

Gets the control theme of the button to the next page.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/pager_control.rs#L758)

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

### set_next_button_style

```rust
fn set_next_button_style(self: &Self, value: Option<Ref<ControlTheme>>)
```

Sets the control theme of the button to the next page.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/pager_control.rs#L763)

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

### last_button_style

```rust
fn last_button_style(self: &Self) -> Option<Ref<ControlTheme>>
```

Gets the control theme of the button to the last page.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/pager_control.rs#L768)

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

### set_last_button_style

```rust
fn set_last_button_style(self: &Self, value: Option<Ref<ControlTheme>>)
```

Sets the control theme of the button to the last page.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/pager_control.rs#L773)

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

### button_panel_always_show_first_last_page_index

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

Gets whether the button panel always shows the buttons of the first and the last page.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/pager_control.rs#L778)

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

### set_button_panel_always_show_first_last_page_index

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

Sets whether the button panel always shows the buttons of the first and the last page.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/pager_control.rs#L783)

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

### prefix_text

```rust
fn prefix_text(self: &Self) -> String
```

Gets the text before the combo box or the number box.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/pager_control.rs#L788)

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

### set_prefix_text

```rust
fn set_prefix_text(self: &Self, value: impl Into<String>)
```

Sets the text before the combo box or the number box.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/pager_control.rs#L793)

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

### suffix_text

```rust
fn suffix_text(self: &Self) -> String
```

Gets the text after the combo box or the number box.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/pager_control.rs#L798)

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

### set_suffix_text

```rust
fn set_suffix_text(self: &Self, value: impl Into<String>)
```

Sets the text after the combo box or the number box.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/pager_control.rs#L803)

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

### template_settings

```rust
fn template_settings(self: &Self) -> Ref<PagerControlTemplateSettings>
```

Gets the page numbers and the number panel items the template binds to.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/pager_control.rs#L808)

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

### selected_index_changed

```rust
fn selected_index_changed(self: &Self, handler: impl Fn(&PagerControl, &PagerControlSelectedIndexChangedEventArgs) -> () + 'static) -> Subscription
```

Adds a handler of the `SelectedIndexChanged` event, raised for every change of
`SelectedPageIndex` and when the template is applied.

Dropping the returned guard removes the handler; `Subscription::detach` keeps it
for the life of the control.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/pager_control.rs#L817)

## 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/)
- `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<PagerControl>`](/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/)
- [`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/)
- [`FerroObjectImpl`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimpl/)
- [`ControlImpl`](/docs/0.5.0/api/ferroui-controls/trait-controlimpl/)
- [`TemplatedControlImpl`](/docs/0.5.0/api/ferroui-controls/primitives/trait-templatedcontrolimpl/)
- [`InputElementImpl`](/docs/0.5.0/api/ferroui-base/input/trait-inputelementimpl/)

## Availability

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