Share via


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 會使用 , NavigationService 將導覽服務提供給 所 NavigationWindow 裝載的內容。 屬性 NavigationService 適用于自訂 NavigationWindow 中的程式碼,以取得 的 NavigationService 參考,例如處理導覽事件。

NavigationWindow 裝載的內容,例如 Page ,應該使用 NavigationService.GetNavigationService 方法或 Page.NavigationService 屬性來取得 的 NavigationService 參考。

適用於