Windows Dev Center

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 bool IsCancelable { get; private set; }

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:
© 2015 Microsoft