Defining the Content of a UI
The Content attribute of a UI contains the visual aspect of the UI and is based on a tree of visual primitives, or view items, with standard data binding mechanisms. For example, the following Content attribute defines a panel layout container:
<UI Name="SimpleUI">
<Content>
<Panel Layout="VerticalFlow">
<Children>
<Text Content="This is a panel layout with a vertical flow." Color="Red" Font="Tahoma,16" />
<Text Content="It contains two text children." Color="Blue" Font="Verdana,22" />
</Children>
</Panel>
</Content>
</UI>
For more information about the view items you can use, see Working with View Items.
Sample Explorer
- All samples
See Also