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
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.Windows.Shell Namespace