ThumbButtonInfo.Command 属性

获取或设置在单击此缩略图按钮时要调用的命令。

命名空间:  Microsoft.Windows.Shell
程序集:  Microsoft.Windows.Shell(在 Microsoft.Windows.Shell.dll 中)

语法

声明
Public Property Command As ICommand
    Get
    Set
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)

属性值

类型:System.Windows.Input.ICommand
在单击此缩略图按钮时要调用的命令。默认值为 nullnull 引用(在 Visual Basic 中为 Nothing)。

实现

ICommandSource.Command

备注

如果您处理 Click 事件,则事件处理程序执行,而不是绑定到缩略图按钮的任何 Command 执行。

在 XAML 中,此属性通常设置为现有命令库(例如 ApplicationCommandsNavigationCommands 库)中一个命令的静态命令值。

.NET Framework 安全性

请参见

参考

ThumbButtonInfo 类

Microsoft.Windows.Shell 命名空间

Command

ApplicationCommands

NavigationCommands

其他资源

命令概述