Share via


NavigationWindow.NavigationService Propriété

Définition

Obtient le NavigationService utilisé par cette NavigationWindow pour fournir des services de navigation à son contenu.

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

Valeur de propriété

NavigationService

Service de navigation utilisé par ce NavigationWindow.

Remarques

NavigationWindow utilise un NavigationService pour fournir des services de navigation au contenu hébergé par NavigationWindow. La NavigationService propriété est utile pour le code d’un code personnalisé NavigationWindow pour obtenir une référence au NavigationService, pour gérer les événements de navigation, par exemple.

Le contenu hébergé par un NavigationWindow, tel que Page, doit utiliser la méthode ou Page.NavigationService la NavigationService.GetNavigationService propriété pour obtenir une référence au NavigationService.

S’applique à