Class NavigatingCancelEventArgs
Provides data for the Page.OnNavigatingFrom(NavigatingCancelEventArgs)
method and the NavigationService.Navigating
event.
Inheritance
System.Object
System.EventArgs
System.ComponentModel.CancelEventArgs
NavigatingCancelEventArgs
Inherited Members
System.ComponentModel.CancelEventArgs.Cancel
System.EventArgs.Empty
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: System.Windows.Navigation
Assembly: OpenSilver.dll
Syntax
public sealed class NavigatingCancelEventArgs : CancelEventArgs
Constructors
| Improve this Doc View SourceNavigatingCancelEventArgs(Uri, NavigationMode)
Initializes a new instance of the NavigatingCancelEventArgs class, based on URI and mode.
Declaration
public NavigatingCancelEventArgs(Uri uri, NavigationMode mode)
Parameters
Type | Name | Description |
---|---|---|
System.Uri | uri | The uniform resource identifier (URI) for the content that is being navigated to. |
NavigationMode | mode | A value that indicates the type of navigation that is occurring. |
Properties
| Improve this Doc View SourceNavigationMode
Gets a value that indicates the type of navigation that is occurring.
Declaration
public NavigationMode NavigationMode { get; }
Property Value
Type | Description |
---|---|
NavigationMode | A value that indicates the type of navigation (Back, Forward, or New) that is occurring. |
Uri
Gets the uniform resource identifier (URI) for the content that is being navigated to.
Declaration
public Uri Uri { get; }
Property Value
Type | Description |
---|---|
System.Uri | A value that represents the URI for the content. |