DropDownGallery.MenuGroups 屬性

代表下拉式資源 控制項中一組下拉式功能表專案的容器。

使用方式

<DropDownGallery.MenuGroups>
  child elements
</DropDownGallery.MenuGroups>

屬性

沒有屬性。

子元素

元素 描述
MenuGroup
必須至少發生一次

父元素

元素
DropDownGallery

備註

必要。

每個 DropDownGallery 元素必須只發生一次。

範例

下列範例示範 DropDownGallery.MenuGroups 元素的基本標記。

此程式碼區段會顯示下拉式資源庫命令空間中的DropDownGallery.MenuGroups控制項宣告。

<!-- DropDownGallery -->
<Group CommandName="cmdDropDownGalleryGroup">
  <DropDownGallery CommandName="cmdDropDownGallery"
                   TextPosition="Hide"
                   Type="Commands"
                   ItemHeight="32"
                   ItemWidth="32">
    <DropDownGallery.MenuLayout>
      <FlowMenuLayout Rows="2"
                      Columns="3"
                      Gripper="None"/>
    </DropDownGallery.MenuLayout>
    <DropDownGallery.MenuGroups>
      <MenuGroup>
        <Button CommandName="cmdButton1"></Button>
        <Button CommandName="cmdButton2"></Button>
       </MenuGroup>
       <MenuGroup>
        <Button CommandName="cmdButton3"></Button>
      </MenuGroup>
    </DropDownGallery.MenuGroups>
  </DropDownGallery>
</Group>

規格需求

需求
最低支援的用戶端
Windows 7 [僅限傳統型應用程式]
最低支援的伺服器
Windows Server 2008 R2 [僅限傳統型應用程式]

另請參閱

下拉式資源庫控制項

使用資源庫