# NavigatedFromEventArgs

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

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

```rust
struct NavigatedFromEventArgs
```

Provides data for the `NavigatedFrom` event of a page.

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

## Members

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

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

### new

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

Creates the args for the page that became active and the type of
the navigation.

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

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

### with_parameter

```rust
fn with_parameter(destination_page: Option<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/navigated_from_event_args.rs#L21)

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

### destination_page

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

The page that became active after the navigation.

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

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

### navigation_type

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

The type of navigation that triggered the event.

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

<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/navigated_from_event_args.rs#L40)

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