# PagerControlSelectedIndexChangedEventArgs

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

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

```rust
struct PagerControlSelectedIndexChangedEventArgs
```

The arguments of the `SelectedIndexChanged` event of a [`PagerControl`](/docs/0.5.0/api/ferroui-controls/struct-pagercontrol/) (WinUI's
`PagerControlSelectedIndexChangedEventArgs`): the index of the page before the change and the
index of the selected page.

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

## Members

- [`previous_page_index`](#struct_field-previous_page_index)
- [`new_page_index`](#struct_field-new_page_index)
- [`previous_page_index`](#function-previous_page_index)
- [`new_page_index`](#function-new_page_index)

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

### previous_page_index

```rust
previous_page_index: i32
```

The index of the page before the change, -1 before the first change.

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

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

### new_page_index

```rust
new_page_index: i32
```

The index of the selected page.

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

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

### previous_page_index

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

The index of the page before the change, -1 before the first change.

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

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

### new_page_index

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

The index of the selected page.

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

## 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`
- `StructuralPartialEq`
- `PartialEq`
- `Eq`
- [`MarkupTyped`](/docs/0.5.0/api/ferroui-base/metadata/trait-markuptyped/)

## Availability

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