NavigatingCancelEventArgs Class

Definition

Provides data for the OnNavigatingFrom callback that can be used to cancel a navigation request from origination.

Equivalent WinUI class: Microsoft.UI.Xaml.Navigation.NavigatingCancelEventArgs.

public ref class NavigatingCancelEventArgs sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.WebHostHidden]
class NavigatingCancelEventArgs sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.WebHostHidden]
class NavigatingCancelEventArgs sealed
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.WebHostHidden]
public sealed class NavigatingCancelEventArgs
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.WebHostHidden]
public sealed class NavigatingCancelEventArgs
Public NotInheritable Class NavigatingCancelEventArgs
Inheritance
NavigatingCancelEventArgs
Attributes

Windows 10 requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Properties

Cancel

Specifies whether a pending navigation should be canceled.

Equivalent WinUI property: Microsoft.UI.Xaml.Navigation.NavigatingCancelEventArgs.Cancel.

NavigationMode

Gets the value of the mode parameter from the originating Navigate call.

Equivalent WinUI property: Microsoft.UI.Xaml.Navigation.NavigatingCancelEventArgs.NavigationMode.

NavigationTransitionInfo

Gets a value that indicates the animated transition associated with the navigation.

Equivalent WinUI property: Microsoft.UI.Xaml.Navigation.NavigatingCancelEventArgs.NavigationTransitionInfo.

Parameter

Gets the navigation parameter associated with this navigation.

Equivalent WinUI property: Microsoft.UI.Xaml.Navigation.NavigatingCancelEventArgs.Parameter.

SourcePageType

Gets the value of the SourcePageType parameter from the originating Navigate call.

Equivalent WinUI property: Microsoft.UI.Xaml.Navigation.NavigatingCancelEventArgs.SourcePageType.

Applies to

See also