CommandBar.PrimaryCommands 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 collection d’éléments de commande principaux pour CommandBar.
public:
property IObservableVector<ICommandBarElement ^> ^ PrimaryCommands { IObservableVector<ICommandBarElement ^> ^ get(); };
IObservableVector<ICommandBarElement> PrimaryCommands();
public IObservableVector<ICommandBarElement> PrimaryCommands { get; }
var iObservableVector = commandBar.primaryCommands;
Public ReadOnly Property PrimaryCommands As IObservableVector(Of ICommandBarElement)
<CommandBar>
<CommandBar.PrimaryCommands>
commandBarElements
</CommandBar.PrimaryCommands>
</CommandBar>
Valeur de propriété
Collection d’éléments de commande principaux pour commandBar. La valeur par défaut est une collection vide.
Remarques
La collection PrimaryCommands peut contenir uniquement des éléments de commande AppBarButton, AppBarToggleButton ou AppBarSeparator . Les commandes principales s’affichent sur le côté droit de la barre de commandes, à gauche du bouton Plus (...) lorsque FlowDirection est LeftToRight. La disposition est inversée lorsque FlowDirection est défini sur RightToLeft.
S’applique à
Voir aussi
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de l’année 2024, nous abandonnerons progressivement le mécanisme de retour d’information GitHub Issues pour le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultez :Soumettre et afficher des commentaires pour