This documentation is archived and is not being maintained.

RibbonGallery.CommandTarget Property

Visual Studio 2010

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

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

public IInputElement CommandTarget { get; set; }

Property Value

Type: System.Windows.IInputElement
The element on which to invoke the command. The registered default is null. For more information about what can influence the value, see Dependency Property Value Precedence.

Implements

ICommandSource.CommandTarget

Identifier field

CommandTargetProperty

Metadata properties set to true

None

Show: