NavigationWindow.NavigationService Property

Definition

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

C#
public System.Windows.Navigation.NavigationService NavigationService { get; }

Property Value

The navigation service used by this NavigationWindow.

Remarks

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.

Applies to

Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10