NavigationCommands.BrowseBack Propriété
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Obtient la valeur qui représente la Browse Back commande.
public:
static property System::Windows::Input::RoutedUICommand ^ BrowseBack { System::Windows::Input::RoutedUICommand ^ get(); };
public static System.Windows.Input.RoutedUICommand BrowseBack { get; }
static member BrowseBack : System.Windows.Input.RoutedUICommand
Public Shared ReadOnly Property BrowseBack As RoutedUICommand
Valeur de propriété
Commande de l’interface utilisateur routée.
| Valeurs par défaut | |
|---|---|
| Mouvement clé | Alt+Gauche |
| Texte de l’interface utilisateur | Précédent |
Exemples
L’exemple suivant montre comment utiliser BrowseBack conjointement avec un Frame. Il Frame fournit une implémentation qui répond à la BrowseBack commande en accédant à l’arrière Frame , s’il existe des entrées de journal sur la pile arrière.
<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
<!-- NavigationCommands.BrowseBack -->
<MenuItem
Command="NavigationCommands.BrowseBack"
CommandTarget="{Binding ElementName=frame}" />
<!-- The following Frame is used to process NavigationCommands.BrowseBack commands -->
<Frame Name="frame" NavigationUIVisibility="Hidden" Source="Page1.xaml" />
</Window>
Remarques
Cette commande indique l’intention de revenir à la page précédente du journal.
Frame et NavigationWindow implémentez la prise en charge de la BrowseBackréponse au , bien que vous ne soyez pas obligé de l’utiliser ; dans de nombreux cas, l’implémentation en réponse à cette commande est la responsabilité de l’enregistreur d’application.
Utilisation des attributs XAML
<object property="NavigationCommands.BrowseBack"/>