Partager via


NavigationWindow.NavigationService Propriété

Définition

Obtient l’élément NavigationService utilisé par ce NavigationWindow paramètre 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é

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 propriété est utile pour le NavigationService 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 à l’objet NavigationService.

S’applique à