DropDownGallery. MenuLayout, propriété

Représente un conteneur pour les dispositions de menus déroulants DropDownGallery .

Usage

<DropDownGallery.MenuLayout>
  child elements
</DropDownGallery.MenuLayout>

Attributs

Il n’y a pas d’attributs.

Éléments enfants

Élément Description
FlowMenuLayout
Doit se produire exactement une fois

VerticalMenuLayout
Doit se produire exactement une fois

Éléments parents

Élément
DropDownGallery

Notes

Optionnel.

Peut se produire au plus une fois pour chaque élément DropDownGallery .

Notes

Un seul élément enfant (VerticalMenuLayout ou FlowMenuLayout) est autorisé.

Exemples

L’exemple suivant illustre le balisage de base pour DropDownGallery.

Cette section de code illustre la déclaration de contrôle DropDownGallery. MenuLayout .

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

Spécifications

Condition requise Valeur
Client minimal pris en charge
applications de [ bureau Windows 7 uniquement]
Serveur minimal pris en charge
Windows Serveur 2008 R2, [ applications de bureau uniquement]

Voir aussi

Contrôle de la Galerie déroulante

Utilisation des galeries