Udostępnij za pośrednictwem


MenuAction.Command Property

Gets the command which represents the menu action.

Namespace:  Microsoft.Windows.Design.Interaction
Assembly:  Microsoft.Windows.Design.Extensibility (in Microsoft.Windows.Design.Extensibility.dll)

Syntax

'Declaration
Public ReadOnly Property Command As ICommand
'Usage
Dim instance As MenuAction 
Dim value As ICommand 

value = instance.Command
public ICommand Command { get; }
public:
property ICommand^ Command {
    ICommand^ get ();
}
public function get Command () : ICommand

Property Value

Type: System.Windows.Input.ICommand
An ICommand which represents the menu action.

Remarks

The designer calls the Execute method on Command to invoke the menu action logic.

.NET Framework Security

See Also

Reference

MenuAction Class

MenuAction Members

Microsoft.Windows.Design.Interaction Namespace

ICommand

PrimarySelectionContextMenuProvider

MenuGroup

Other Resources

Walkthrough: Creating a MenuAction