Command.SmallHighContrastImages 属性

表示映像的容器;在这种情况下,小图像用于高对比度系统设置。

使用情况

<Command.SmallHighContrastImages>
  child elements
</Command.SmallHighContrastImages>

特性

没有属性。

子元素

元素 说明
映像
可能发生一次或多次

父元素

元素
命令

备注

可选。

每个 命令最多可以发生一次。

图像资源必须符合 Windows 中使用的标准位图 (BMP) 图形格式。

示例

以下示例演示具有 MenuGroup 元素的 SplitButton 的基本标记。

此代码部分显示 SplitButtonMenuGroup 命令声明,其中包含大型和小型高对比度图像资源。 还声明了一个关联的 Group,该 充当 SplitButton 元素的父容器。

<!-- SplitButton -->
<Command Name="cmdSplitButtonGroup"
         Symbol="cmdSplitButtonGroup"
         Comment="SplitButton Group"
         LabelTitle="SplitButton"/>
<Command Name="cmdSplitButton"
         Symbol="cmdSplitButton"
         Comment="SplitButton"
         LabelTitle="SplitButton"/>
<Command Name="cmdSBButtonItem"
         Symbol="cmdSBButtonItem"
         Comment="SBButtonItem"
         LabelTitle="SB ButtonItem"/>
<Command Name="cmdSBButton1"
         Symbol="cmdSBButton1"
         Comment="SBButton1"
         LabelTitle="SB Button">
  <Command.LargeImages>
    <Image Source="res/copyL_32.bmp"/>
  </Command.LargeImages>
  <Command.SmallImages>
    <Image Source="res/copyS_16.bmp"/>
  </Command.SmallImages>
  <Command.LargeHighContrastImages>
    <Image Source="res/copyLHC_32.bmp"/>
  </Command.LargeHighContrastImages>
  <Command.SmallHighContrastImages>
    <Image Source="res/copySHC_16.bmp"/>
  </Command.SmallHighContrastImages>
</Command>
<Command Name="cmdSBMajorItems"
         Comment="Major Items Category"
         LabelTitle="Major Items"/>
<Command Name="cmdSBStandardItems"
         Comment="Standard Items Category"
         LabelTitle="Standard Items"/>

要求

要求
最低受支持的客户端
Windows 7 [仅限桌面应用]
最低受支持的服务器
Windows Server 2008 R2 [仅限桌面应用]

另请参阅

指定功能区图像资源

UI_PKEY_SmallHighContrastImage