# NavigatingCancelEventArgs

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

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

```rust
struct NavigatingCancelEventArgs
```

The arguments of `Frame.Navigating` and `FramePage::on_navigating_from` (WinUI's
`NavigatingCancelEventArgs`). Clones share the cancellation, also the copies markup handlers
receive.

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

## Members

- [`cancel`](#function-cancel)
- [`set_cancel`](#function-set_cancel)
- [`navigation_mode`](#function-navigation_mode)
- [`source_page_type`](#function-source_page_type)
- [`parameter`](#function-parameter)

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

### cancel

```rust
fn cancel(self: &Self) -> bool
```

Gets whether the navigation is cancelled.

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

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

### set_cancel

```rust
fn set_cancel(self: &Self, value: bool)
```

Cancels the navigation (`true`) or lets it go on.

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

<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#L195)

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

### source_page_type

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

Gets the type of the page the frame navigates to.

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

<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#L205)

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