DropDownButton 要素

標準の ドロップダウン ボタン コントロールを 表します。

使用法

<DropDownButton
  ApplicationModes = "xs:string"
  CommandName = "xs:positiveInteger or xs:string">
  child elements
</DropDownButton>

属性

属性 Type 必須 説明
ApplicationModes
xs:string
いいえ
MenuGroup が親要素の場合にのみ有効です。

(xs:string)
0 ~ 31 の整数のコンマ区切りのリストを含む文字列。
空白は有効であり、無視されます。
最大長: 250 文字。
CommandName
xs:positiveInteger または xs:string
いいえ
要素を Command に関連付 けます

(xs:positiveInteger または xs:string)
文字列、2 ~ 59999 の整数値、または 0x2 から 0xea5f までの 16 進数の値 (両端を含む)。
値は、リボン XML ドキュメント内で一意である必要があります。
最大長: 100 文字。

子要素

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

CheckBox
1 回以上発生する可能性がある

ComboBox
1 回以上発生する可能性がある

DropDownButton
1 回以上発生する可能性がある

DropDownColorPicker
1 回以上発生する可能性がある

DropDownGallery
1 回以上発生する可能性がある

MenuGroup
少なくとも 1 回は発生する必要があります

SplitButton
1 回以上発生する可能性がある

SplitButtonGallery
1 回以上発生する可能性がある

ToggleButton
1 回以上発生する可能性がある

親要素

要素
ControlGroup
DropDownButton
DropDownGallery
グループ
MenuGroup
SplitButton
SplitButtonGallery

解説

親要素に応じて、省略可能または必須。

ControlGroupDropDownButton、DropDownGalleryGroupMenuGroup、SplitButton、または SplitButtonGallery 要素ごとに 1 回以上発生する可能性があります。

DropDownButton は、 アプリケーション メニューの左側の列でホストされている場合に、アプリケーション モードをサポートします。

DropDownGallerySplitButtonGallery は、DropDownButtonApplicationMenu の子孫である場合、DropDownButton の有効な子要素ではありません。

次の例では、 DropDownButton の基本的なマークアップを示します。

このコード セクションでは、DropDownButton コマンド宣言と、DropDownButton 要素の親コンテナーとして機能する関連付けられた Group を示します。

<!-- DropDownButton -->
<Command Name="cmdDropDownButtonGroup"
         Symbol="cmdDropDownButtonGroup"
         Comment="DropDownButton Group"
         LabelTitle="DropDownButton"/>
<Command Name="cmdDropDownButton"
         Symbol="cmdDropDownButton"
         Comment="DropDownButton"
         LabelTitle="DropDownButton"/>
<Command Name="cmdDDBButton1"
         Symbol="cmdDDBButton1"
         Comment="DDBButton1"
         LabelTitle="DDB Button"/>
<Command Name="cmdDDBColorPicker"
         Symbol="cmdDDBColorPicker"
         Comment="DDBColorPicker"
         LabelTitle="DDB ColorPicker"/>

コードのこのセクションでは、 DropDownButton コントロールの宣言を示します。

<Group CommandName="cmdDropDownButtonGroup">
  <DropDownButton CommandName="cmdDropDownButton">
    <MenuGroup>
      <Button CommandName="cmdDDBButton1"/>
      <DropDownColorPicker CommandName="cmdDDBColorPicker"/>
    </MenuGroup>
  </DropDownButton>
</Group>

要素情報

  • サポートされている最小システム: Windows 7
  • 空にできます: いいえ

関連項目

ドロップダウン ボタン コントロール

SetModes