Specifying Default Images

You can specify default images associated to tiles either in the configuration, or by inserting a Base64–encoded image resource into the extensibility layout XML file.

In the configuration, set the imageSrc attribute and assign an identifier in the form "<png_image_name_without_extension>".

Add the Caution/Example/... paragraphs to your Quick Parts in the Insert ribbon (Insert > Quick Parts > Save Selection to Quick Part Gallery). Then delete these paragraphs below.

Caution

Add a bundle called MAFExtensibilityImages.bundle to the project. All the image resources referenced in the layout XML must be located in this bundle; otherwise, the Extensibility Framework cannot load them.

In this example, you must add the image named leave_request.png to the project, so it is available in the application bundle.

<Tile tileId="leave_request_composite ">
     <P pid=” title” value="$_i18n.leaverequest"/>
     <P pid=” imageSrc” value="leave_request"/>
     ...
</Tile>

Alternatively, you can insert a Base64-encoded image resource into the extensibility layout XML:

<Tile tileId="leave_request_composite ">
    <P pid=” title” value="$_i18n.leaverequest"/>
    <P pid=” imageSrc” value=
"iVBORw0KGgoAAAANSUhEUgAAAEIAAAAhCAYAAABtNH0cAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6"/>
...
</Tile>