Image.Source 属性
表示映像的目录路径。
使用情况
<Image.Source/>
特性
没有属性。
子元素
没有子元素。
父元素
元素 |
---|
映像 |
备注
可选。
对于每个 映像,最多可以发生一次。
此元素包含 xs:anyURI 类型的值或任何字符序列,表示统一资源标识符 (URI) 。 URI 值是位图 (BMP) 类型的图像资源) 目录路径的功能区标记文件的绝对或相对 (。
示例
下面的代码示例演示通过一组 Image 元素声明图像资源集合所需的标记,这些资源旨在支持四个特定的屏幕 dpi 设置。 Image.Source 属性用于指定图像资源的路径。
<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>
要求
要求 | 值 |
---|---|
最低受支持的客户端 |
Windows 7 [仅限桌面应用] |
最低受支持的服务器 |
Windows Server 2008 R2 [仅限桌面应用] |