NavigationWindow.NavigationService 属性

定义

获取 NavigationService 用来为其内容提供导航服务的 NavigationWindow

public:
 property System::Windows::Navigation::NavigationService ^ NavigationService { System::Windows::Navigation::NavigationService ^ get(); };
public System.Windows.Navigation.NavigationService NavigationService { get; }
member this.NavigationService : System.Windows.Navigation.NavigationService
Public ReadOnly Property NavigationService As NavigationService

属性值

NavigationService

NavigationWindow 所使用的导航服务。

注解

NavigationWindow 使用 a NavigationService 向托管 NavigationWindow的内容提供导航服务。 该 NavigationService 属性对于自定义 NavigationWindow 中的代码非常有用,用于获取对 NavigationService导航事件的引用,例如。

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.

适用于