NavigationService Class
July 26, 2012
Provides methods, properties, and events to support navigation within a Silverlight application.
Namespace:
System.Windows.Navigation
Assembly: Microsoft.Phone (in Microsoft.Phone.dll)
The NavigationService type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | BackStack | Gets an IEnumerable that you use to enumerate the entries in the back navigation history. |
![]() | CanGoBack | Gets a value that indicates whether there is at least one entry in the back navigation history. |
![]() | CanGoForward | Gets a value that indicates whether there is at least one entry in the forward navigation history. |
![]() | CurrentSource | Gets the uniform resource identifier (URI) of the content that is currently displayed. |
![]() | Source | Gets or sets the uniform resource identifier (URI) of the current content or the content that is being navigated to. |
| Name | Description | |
|---|---|---|
![]() | Equals | (Inherited from Object.) |
![]() | Finalize | (Inherited from Object.) |
![]() | GetHashCode | (Inherited from Object.) |
![]() | GetType | (Inherited from Object.) |
![]() | GoBack | Navigates to the most recent entry in the back navigation history, or throws an exception if no entry exists in back navigation. |
![]() | GoForward | Navigates to the most recent entry in the forward navigation history, or throws an exception if no entry exists in forward navigation. For Windows Phone, this method will always throw an exception because there is no forward navigation stack. |
![]() | MemberwiseClone | (Inherited from Object.) |
![]() | Navigate | Navigates to the content specified by the uniform resource identifier (URI). |
![]() | RemoveBackEntry | This method is used to remove the most recent entry from the back stack, or throws an InvalidOperationException if there are no more entries to remove. If you want to remove more than one item, you call this method multiple times. This API is synchronous and must be called from the UI thread. |
![]() | StopLoading | Stops asynchronous navigations that have not yet been processed. |
![]() | ToString | (Inherited from Object.) |
| Name | Description | |
|---|---|---|
![]() | FragmentNavigation | Occurs when navigation to a content fragment begins. |
![]() | JournalEntryRemoved | This event is raised during a RemoveBackEntry() operation or during a normal back navigation after the Navigated event has been raised. |
![]() | Navigated | Occurs when the content that is being navigated to has been found and is available. |
![]() | Navigating | Occurs when a new navigation is requested. |
![]() | NavigationFailed | Occurs when an error is encountered while navigating to the requested content. |
![]() | NavigationStopped | Occurs when the StopLoading method is called, or when a new navigation is requested while the current navigation is in progress. |
