ThumbButtonInfo.CommandTarget Property

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

Namespace:  Microsoft.Windows.Shell
Assembly:  Microsoft.Windows.Shell (in Microsoft.Windows.Shell.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 raise the specified command. The default is nulla null reference (Nothing in Visual Basic).

Implements

ICommandSource.CommandTarget

Remarks

The CommandTarget property provides a reference to an element that is already defined in your application.

.NET Framework Security

See Also

Reference

ThumbButtonInfo Class

Microsoft.Windows.Shell Namespace

CommandTarget

Other Resources

Commanding Overview