Command.SmallHighContrastImages property

Represents a container of images; in this case, small images for use with high-contrast system settings.

Usage

<Command.SmallHighContrastImages>
  child elements
</Command.SmallHighContrastImages>

Attributes

There are no attributes.

Child elements

Element Description
Image
May occur one or more times

Parent elements

Element
Command

Remarks

Optional.

May occur at most once for each Command.

Image resources must conform to the standard bitmap (BMP) graphics format used in Windows.

Examples

The following example demonstrates the basic markup for the SplitButton with a MenuGroup element.

This section of code shows the SplitButton and MenuGroup Command declarations with large and small high contrast image resources. An associated Group that acts as the parent container for the SplitButton element is also declared.

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

Requirements

Requirement Value
Minimum supported client
Windows 7 [desktop apps only]
Minimum supported server
Windows Server 2008 R2 [desktop apps only]

See also

Specifying Ribbon Image Resources

UI_PKEY_SmallHighContrastImage