Command.SmallImages プロパティ

イメージのコンテナーを表します。この場合は、小さな画像。

使用

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

属性

属性はありません。

子要素

要素 説明
Image
1 回以上発生する可能性がある

親要素

要素
コマンド

注釈

省略可能。

コマンドごとに最大で 1 回発生 する可能性があります。

イメージ リソースは、Windows で使用される標準ビットマップ (BMP) グラフィックス形式に準拠している必要があります。

次の例では、MenuGroup 要素を含む SplitButton の基本的なマークアップを示します。

このコード セクションでは、大小のイメージ リソースを使用した SplitButton コマンドと MenuGroup コマンド宣言を示します。 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