RibbonGallery.Command Property

Gets or sets the command that is associated with this ribbon gallery.

Namespace:  Microsoft.Windows.Controls.Ribbon
Assembly:  RibbonControlsLibrary (in RibbonControlsLibrary.dll)

Syntax

'Declaration
Public Property Command As ICommand
public ICommand Command { get; set; }
public:
virtual property ICommand^ Command {
    ICommand^ get () sealed;
    void set (ICommand^ value) sealed;
}
abstract Command : ICommand with get, set
override Command : ICommand with get, set
final function get Command () : ICommand
final function set Command (value : ICommand)

Property Value

Type: System.Windows.Input.ICommand
The command that is associated with this ribbon gallery. The registered default is nulla null reference (Nothing in Visual Basic). For more information about what can influence the value, see Dependency Property Value Precedence.

Implements

ICommandSource.Command

Dependency Property Information

Identifier field

CommandProperty

Metadata properties set to true

None

.NET Framework Security

See Also

Reference

RibbonGallery Class

Microsoft.Windows.Controls.Ribbon Namespace

Other Resources

Commanding Overview

How to: Hook Up a Command to a Control with Command Support