RibbonGallery.CommandTarget Property

Gets or sets the element on which to invoke the specified command.

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

Syntax

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

Property Value

Type: System.Windows.IInputElement
The element on which to invoke the command. 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.CommandTarget

Dependency Property Information

Identifier field

CommandTargetProperty

Metadata properties set to true

None

.NET Framework Security

See Also

Reference

RibbonGallery Class

Microsoft.Windows.Controls.Ribbon Namespace

Other Resources

Commanding Overview