# NavigationEventArgs

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

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

```rust
struct NavigationEventArgs
```

The arguments of `Frame.Navigated`, `Frame.NavigationStopped` and the navigation callbacks of
[`FramePage`](/docs/0.5.0/api/ferroui-controls/struct-framepage/) (WinUI's `NavigationEventArgs`). It is `ferroui_controls::navigation::NavigationEventArgs`;
the view builders name it `FrameNavigationEventArgs`, beside the upstream `NavigationEventArgs`
of the pages.

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

## Members

- [`content`](#function-content)
- [`navigation_mode`](#function-navigation_mode)
- [`source_page_type`](#function-source_page_type)
- [`parameter`](#function-parameter)

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

### content

```rust
fn content(self: &Self) -> Option<Ref<FramePage>>
```

Gets the page the frame shows after the navigation; `None` for a stopped navigation.

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

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

### navigation_mode

```rust
fn navigation_mode(self: &Self) -> NavigationMode
```

Gets how the navigation was requested.

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

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

### source_page_type

```rust
fn source_page_type(self: &Self) -> PageType
```

Gets the type of the page of the navigation.

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

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

### parameter

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

Gets the parameter of the navigation.

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

## 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`
- `PartialEq`
- [`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/).
