Image.Source property

Represents the directory path of an image.

Usage

<Image.Source/>

Attributes

There are no attributes.

Child elements

There are no child elements.

Parent elements

Element
Image

Remarks

Optional.

May occur at most once for each Image.

This element contains a value of type xs:anyURI or any sequence of characters that represents a Uniform Resource Identifier (URI). The URI value is an absolute or relative (to the Ribbon markup file) directory path of an image resource of type bitmap (BMP).

Examples

The following code example shows the markup required to declare, through a set of Image elements, a collection of image resources that are designed to support four specific screen dpi settings. The Image.Source property is used to specify the path to the image resource.

<Command Name="cmdSizeAndColor" Symbol="IDR_CMD_SIZEANDCOLOR">
  <Command.LabelTitle>
    <String Id="250">Size and Color</String>
  </Command.LabelTitle>
  <Command.LargeImages>
    <Image Id="251" MinDPI="96">
      <Image.Source>res/sizeAndColor_96.bmp</Image.Source>
    </Image>
    <Image Id="252" MinDPI="120">
      <Image.Source>res/sizeAndColor_120.bmp</Image.Source>
    </Image>
    <Image Id="253" MinDPI="144">
      <Image.Source>res/sizeAndColor_144.bmp</Image.Source>
    </Image>
    <Image Id="254" MinDPI="192">
      <Image.Source>res/sizeAndColor_192.bmp</Image.Source>
    </Image>
  </Command.LargeImages>
</Command>

Requirements

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