<Shell xmlns="http://www.eclipse.org/xwt/presentation" | |
xmlns:x="http://www.eclipse.org/xwt" | |
xmlns:j="clr-namespace:org.eclipse.xwt.tests.controls.table.binding" | |
text="Table Test" | |
DataContext="{StaticResource myCompany}"> | |
<Shell.layout> | |
<GridLayout numColumns="1"/> | |
</Shell.layout> | |
<x:Shell.Resources> | |
<j:Company x:Key="myCompany"> | |
<j:Company.employees> | |
<x:Array Type="j:Employee"> | |
<j:Employee Name="Thomas"/> | |
<j:Employee Name="Jin"/> | |
</x:Array> | |
</j:Company.employees> | |
</j:Company> | |
</x:Shell.Resources> | |
<Table x:style="BORDER|SINGLE|FULL_SELECTION" HeaderVisible="true" LinesVisible="true"> | |
<TableColumn width="150" text="Name"/> | |
<TableColumn width="150" text="Age"/> | |
<TableItem> | |
<TableItem.cells> | |
<Cell text="Thomas" /> | |
<Cell text="31" image="demo.gif"/> | |
</TableItem.cells> | |
</TableItem> | |
</Table> | |
</Shell> |