ThumbButtonInfo.ImageSource 属性

获取或设置在缩略图按钮上显示的图像。

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

语法

声明
Public Property ImageSource As ImageSource
    Get
    Set
public ImageSource ImageSource { get; set; }
public:
property ImageSource^ ImageSource {
    ImageSource^ get ();
    void set (ImageSource^ value);
}
member ImageSource : ImageSource with get, set
function get ImageSource () : ImageSource
function set ImageSource (value : ImageSource)

属性值

类型:System.Windows.Media.ImageSource
在缩略图按钮上显示的图像。默认值为 nullnull 引用(在 Visual Basic 中为 Nothing)。

备注

您可以在缩略图按钮上放置静态或动态 ImageSource。 图像按适当的大小呈现。 如果 ImageSource 代表 Icon,也可以使用适当的位深度。

若要提供有关缩略图按钮的其他文本化信息,请设置 Description 属性。

.NET Framework 安全性

请参见

参考

ThumbButtonInfo 类

Microsoft.Windows.Shell 命名空间

ImageSource