The following table provides a list of elements that are available in SCF.
| Element name | Description | Usage |
| body element | The body element is the top-level element in a Simple Content Format XML specification. It contains one of the three basic types of content allowed by the Simple Content Format: menu pages, general content pages, and dialog pages. |
<body>
<content>
<txt>
Windows SideShow!
</txt>
</content>
</body>
|
| br element | The br element specifies that a line break should occur at the specified location in the rendered content. It can be nested within other elements. The element should always be specified as “<br/>” (though <br></br> is still valid). The br element can be used in a menu item to cause it to wrap to multiple lines. |
<txt>Text block 1
<br/>
Text block 2</txt>
<item target=10>Line 1
<br/>
Line2</item>
|
| btn element | The btn element specifies a mapping to one of a predefined number of virtual buttons that are equivalent across all devices; they cause navigation to the specified page ID. The text of the button is specified in the element’s text section (and is not necessarily visible, but might be used in a help screen). For more information, see "Use the expected button behaviors" in Designing the User Experience for the Gadget. |
<btn target=10 key="right">Forward</btn>
|
| clr element | The clr element specifies that the text contained within this element should be rendered in the specified color or as close to the specified color as the device can achieve. If a device cannot support color, it can use other methods of differentiating the text, or it can do nothing. This tag is only valid within a txt element. For more information, see "Use default text colors wherever possible" in Designing the User Experience for the Gadget. |
<txt rgb=”FFFFFF”>White Text <clr rgb=”000000”>Black Text</clr> White Text</txt>
|
| content element | The content element specifies a collection of static text and images, laid out in a flow manner. |
<content id="200" title="Now Playing" bg="50" bgfit="s" menuid="1000">
<txt align="c" wrap="0"><em>Song Title</em></txt>
</content>
|
| dialog element | The dialog element specifies text, buttons, and possibly a single image to be displayed on a page that requires a response from the user. |
<dialog id="300" title="Power
Alert" imgid="Warning">
<txt align="l">Windows has detected that your battery is running low. Would you like to go into hibernate?</txt>
<btn key="Enter" target="10">Yes</btn>
<btn key="Back" target="11">No</btn>
</dialog>
|
| div element | The div element specifies that a dividing line should occur at the specified point in a sequence of rendered menu items. |
<menu id="100" title="Main Menu">
<item id="1" target="6" imgid="2" def="1">Calendar</item>
<div/>
<item id="2" target="8" enable="0">Settings</item>
</menu>
|
| em element | The em element specifies that the text contained within this element should be emphasized. A device manufacturer can choose exactly what constitutes an emphasis format. We recommend bold type. If a device is not capable of rendering emphasized text with formatting, it can use pre and post characters to delineate the emphasized text. This tag is only valid within a txt element. |
<txt>Windows SideShow gadgets can potentially save an <em>hour</em> of time per day!</txt>
|
| img element | The img element specifies information about an image that is included within the content page, including its content identifier, rendering preferences, and an alternative string that describes the image. |
<img id=5 />
<img id=5></img>
<img id=5 align=”c” fit=”screen” alt=”[Full Screen Image]” />
|
| item element | The item element describes a single item in the containing menu, as specified by a menu element. |
<menu id="100" title="Main Menu">
<item id="1" target="6" imgid="2" def="1">Calendar</item>
</menu>
|
| menu element | The menu element specifies the list of menu items that constitutes a menu page. |
<menu id="100" title="Main Menu">
<item id="1" target="6" imgid="2" def="1">Calendar</item>
</menu>
|
| txt element | The txt element specifies that the text contained within it should be rendered on the associated device according to the alignment, wrap, and color characteristics provided by the corresponding attributes. For more information, see "Use default text colors wherever possible" in Designing the User Experience for the Gadget. |
<txt>This is the default text.</txt>
<txt align=”c” wrap=”0”>Album Artist That Is Truncated</txt>
<txt rgb=”0F0F0F”>This text is colored.</txt>
|
In addition to the usage in the previous table, the menu pages have more in-depth capabilities, which are described in the following sections.