IsCancelable Property
Collapse the table of content
Expand the table of content

NavigatingCancelEventArgs.IsCancelable Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets a value that indicates whether you can cancel the navigation.

Namespace:  System.Windows.Navigation
Assembly:  System.Windows (in System.Windows.dll)

'Declaration
Public Property IsCancelable As Boolean

Property Value

Type: System.Boolean
true if you can cancel the navigation; otherwise, false.

In Windows Phone applications, you can use this property to determine whether the navigation system will ignore the Cancel property. This happens whenever the navigation destination is an external location, including other applications, launchers, and choosers. This also includes backward navigation that exits the application. However, you can cancel backward navigation in a PhoneApplicationPage.OnBackKeyPress method override.

Version Notes

Windows Phone

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

Show:
© 2017 Microsoft