Command.SmallImages 屬性

表示映射的容器;在此案例中為小型影像。

使用方式

<Command.SmallImages>
  child elements
</Command.SmallImages>

屬性

沒有屬性。

子元素

元素 Description
圖像
可能發生一或多次

父元素

元素
命令

備註

選擇性。

每個 命令最多可能會發生一次。

影像資源必須符合 Windows 中使用的標準點陣圖 (BMP) 圖形格式。

範例

下列範例示範具有MenuGroup元素之SplitButton的基本標記。

這段程式碼區段會顯示具有大型和小型影像資源的 SplitButtonMenuGroup 命令宣告。 也會宣告做為SplitButton元素父容器的相關聯Group

<!-- 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_SmallImage