NavigationCommands.BrowseBack Propriété

Définition

Obtient la valeur qui représente la commande Browse Back.

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 d’interface utilisateur routée.

Valeurs par défaut
Combinaison de touches ALT+GAUCHE
Texte d'interface utilisateur Précédent

Exemples

L’exemple suivant montre comment utiliser BrowseBack conjointement avec un Frame. fournit Frame une implémentation qui répond à la BrowseBack commande en naviguant vers 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 réponse à , BrowseBackbien 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 d'attributs XAML

<object property="NavigationCommands.BrowseBack"/>  

S’applique à

Voir aussi