Share via


ThumbButtonInfo.Command Property

Gets or sets the command to invoke when this thumbnail button is clicked.

Namespace:  Microsoft.Windows.Shell
Assembly:  Microsoft.Windows.Shell (in Microsoft.Windows.Shell.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 to invoke when this thumbnail button is clicked. The default is nulla null reference (Nothing in Visual Basic).

Implements

ICommandSource.Command

Remarks

If you handle the Click event, the event handler executes instead of any Command that is bound to the thumbnail button.

In XAML, this property is often set to be a static command value from one of the existing command libraries, such as from the ApplicationCommands or NavigationCommands library.

.NET Framework Security

See Also

Reference

ThumbButtonInfo Class

Microsoft.Windows.Shell Namespace

Command

ApplicationCommands

NavigationCommands

Other Resources

Commanding Overview