Поделиться через


NavigatingCancelEventArgs.IsCancelable Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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

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

Syntax

'Declaration
Public Property IsCancelable As Boolean
public bool IsCancelable { get; private set; }

Property Value

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

Remarks

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.

Version Information

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1

Platforms

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