# PageImpl

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-controls/page/trait-pageimpl/

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

```rust
trait PageImpl: TemplatedControlImpl + $crate::Upcast<Page>
```

The overridable members introduced by the class.

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

## Members

- [`on_navigated_to`](#function-on_navigated_to)
- [`on_navigating_from`](#function-on_navigating_from)
- [`on_navigated_from`](#function-on_navigated_from)
- [`on_system_back_button_pressed`](#function-on_system_back_button_pressed)
- [`update_content_safe_area_padding`](#function-update_content_safe_area_padding)
- [`update_active_page`](#function-update_active_page)

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

### on_navigated_to

```rust
fn on_navigated_to(this: &Self, args: &NavigatedToEventArgs)
```

Called when the page has been navigated to.

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

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

### on_navigating_from

```rust
fn on_navigating_from(this: &Self, args: &NavigatingFromEventArgs)
```

Called when the page is about to be navigated from.

Setting the cancel flag of the args here prevents the
`Navigating` asynchronous handlers from running and aborts the
navigation. This method is called before the `Navigating` event.

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

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

### on_navigated_from

```rust
fn on_navigated_from(this: &Self, args: &NavigatedFromEventArgs)
```

Called when the page has been navigated from.

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

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

### on_system_back_button_pressed

```rust
fn on_system_back_button_pressed(this: &Self) -> bool
```

Called when the system back button is pressed. Returns true if
the back press was handled.

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

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

### update_content_safe_area_padding

```rust
fn update_content_safe_area_padding(this: &Self)
```

Called when the safe-area padding changes.

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

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

### update_active_page

```rust
fn update_active_page(this: &Self)
```

Called when the active child page changes.

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

## Trait implementations

- [`PageImpl`](/docs/0.5.0/api/ferroui-controls/page/trait-pageimpl/)

## Availability

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