NavigatingCancelEventArgs.IsCancelable Property

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

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

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

Silverlight for the desktop

Do not use for a Silverlight for the desktop application.

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions