# NavigationEventArgs

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

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

```rust
struct NavigationEventArgs
```

Provides data for navigation events such as `Pushed`, `Popped` and
`PoppedToRoot`.

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

## Members

- [`new`](#function-new)
- [`with_parameter`](#function-with_parameter)
- [`page`](#function-page)
- [`navigation_type`](#function-navigation_type)
- [`parameter`](#function-parameter)

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

### new

```rust
fn new(page: Ref<Page>, navigation_type: NavigationType) -> Self
```

Creates the args for the page involved in the navigation and the
type of the navigation.

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

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

### with_parameter

```rust
fn with_parameter(page: Ref<Page>, navigation_type: NavigationType, parameter: Option<BoxedValue>) -> Self
```

Creates the args with the parameter that was passed to the
navigation.

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

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

### page

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

The page involved in the navigation.

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

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

### navigation_type

```rust
fn navigation_type(self: &Self) -> NavigationType
```

The type of navigation.

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

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

### parameter

```rust
fn parameter(self: &Self) -> Option<BoxedValue>
```

The parameter passed to the navigation.

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

## 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`
- `StructuralPartialEq`
- `PartialEq`

## Availability

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