다음을 통해 공유


NavigationMode Enumeration

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

Specifies the type of navigation that is occurring.

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

Syntax

'Declaration
<TypeForwardedFromAttribute("System.Windows.Controls.Navigation, Version=2.0.5.0, Culture=Neutral, PublicKeyToken=31bf3856ad364e35")> _
Public Enumeration NavigationMode
[TypeForwardedFromAttribute("System.Windows.Controls.Navigation, Version=2.0.5.0, Culture=Neutral, PublicKeyToken=31bf3856ad364e35")]
public enum NavigationMode

Members

Member name Description
Supported by Silverlight for Windows Phone New Navigating to new content. This value is used when the Navigate method is called or when the Source property is set. It is also used for any navigation request that the user initiates from the Web browser (including the back or forward buttons in a Web browser).
Supported by Silverlight for Windows Phone Back Navigating to the most recent content in the back navigation history. This value is used when the GoBack method is called.
Supported by Silverlight for Windows Phone Forward Navigating to the most recent content in the forward navigation history. This value is used when the GoForward method is called.
Supported by Silverlight for Windows Phone Refresh Reloading the current content. This value is used when the Refresh method is called.

Remarks

You use the NavigationMode enumeration when examining the value of the NavigationMode property of the NavigatingCancelEventArgs class.

Any navigation request that the user initiates through a Web browser (including using the back or forward button of the Web browser) is represented as a New type of navigation.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

Platforms

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