Share via


NavigatingCancelEventArgs Class

Definition

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

public ref class NavigatingCancelEventArgs sealed
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.UI.Xaml.WinUIContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class NavigatingCancelEventArgs final
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.UI.Xaml.WinUIContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class NavigatingCancelEventArgs
Public NotInheritable Class NavigatingCancelEventArgs
Inheritance
Object Platform::Object IInspectable NavigatingCancelEventArgs
Attributes

Properties

Cancel

Specifies whether a pending navigation should be canceled.

NavigationMode

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

NavigationTransitionInfo

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

Parameter

Gets the navigation parameter associated with this navigation.

SourcePageType

Gets the value of the sourcePageType parameter (the page being navigated to) from the originating Navigate call.

Applies to

See also