Propriété Command.LargeImages

Représente un conteneur d’images ; dans ce cas, des images volumineuses.

Utilisation

<Command.LargeImages>
  child elements
</Command.LargeImages>

Attributs

Il n’y a pas d’attributs.

Éléments enfants

Élément Description
Image
Peut se produire une ou plusieurs fois

Éléments parents

Élément
Commande

Notes

Optionnel.

Peut se produire au maximum une fois pour chaque commande.

Les ressources d’image doivent être conformes au format graphique bitmap standard (BMP) utilisé dans Windows.

Exemples

L’exemple suivant illustre le balisage de base du SplitButton avec un élément MenuGroup .

Cette section de code présente les déclarations SplitButton et MenuGroup Command avec une grande et une petite ressource image. Un groupe associé qui agit comme conteneur parent pour l’élément SplitButton est également déclaré.

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

Spécifications

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

Voir aussi

Spécification des ressources d’image du ruban

UI_PKEY_LargeImage