NavigationWindow::NavigationService Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets the NavigationService that is used by this NavigationWindow to provide navigation services to its content.

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

property NavigationService^ NavigationService {
	NavigationService^ get();

Property Value

Type: System.Windows.Navigation::NavigationService^

The navigation service used by this NavigationWindow.

NavigationWindow uses a NavigationService to provide navigation services to content that is hosted by NavigationWindow. The NavigationService property is useful for code in a custom NavigationWindow to get a reference to the NavigationService, to handle navigation events, for example.

Content that is hosted by a NavigationWindow, such as Page, should use the NavigationService::GetNavigationService method or Page::NavigationService property to get a reference to the NavigationService.

.NET Framework
Available since 3.0
Return to top