MenuAction.Command, propriété

Obtient la commande qui représente l'action du menu.

Espace de noms :  Microsoft.Windows.Design.Interaction
Assembly :  Microsoft.Windows.Design.Interaction (dans Microsoft.Windows.Design.Interaction.dll)

Syntaxe

'Déclaration
Public ReadOnly Property Command As ICommand
    Get
public ICommand Command { get; }
public:
property ICommand^ Command {
    ICommand^ get ();
}
member Command : ICommand
function get Command () : ICommand

Valeur de propriété

Type : System.Windows.Input.ICommand
ICommand qui représente l'action du menu.

Notes

Le concepteur fait appel à la méthode Execute sur Command pour appeler la logique de l'action du menu.

Sécurité .NET Framework

Voir aussi

Référence

MenuAction Classe

Microsoft.Windows.Design.Interaction, espace de noms

ICommand

PrimarySelectionContextMenuProvider

MenuGroup

Autres ressources

Procédure pas à pas : création d'un fournisseur de menus