<Shell xmlns="http://www.eclipse.org/xwt/presentation" | |
xmlns:x="http://www.eclipse.org/xwt" | |
xmlns:y="clr-namespace:org.eclipse.xwt.emf.test.books" | |
Size="400, 300"> | |
<Shell.layout> | |
<GridLayout numColumns="3"/> | |
</Shell.layout> | |
<Shell.Resources> | |
<EMFDataProvider x:Key="myBooks" typeURI="org.eclipse.xwt.emf/books.ecore#//Book"> | |
</EMFDataProvider> | |
</Shell.Resources> | |
<Label text="Name:"/> | |
<Text name="titleText" x:style="BORDER" text="{Binding Source={StaticResource myBooks}, Path=title.text}"> | |
<Text.layoutData> | |
<GridData horizontalAlignment="FILL" | |
grabExcessHorizontalSpace="true"/> | |
</Text.layoutData> | |
</Text> | |
<Text name="authorText" x:style="BORDER" text="{Binding Source={StaticResource myBooks}, Path=author}"> | |
<Text.layoutData> | |
<GridData horizontalAlignment="FILL" | |
grabExcessHorizontalSpace="true"/> | |
</Text.layoutData> | |
</Text> | |
<Label text="Copy:"/> | |
<Text x:style="BORDER" text="{Binding Source={StaticResource myBooks}, Path=title.text}"> | |
<Text.layoutData> | |
<GridData horizontalAlignment="FILL" | |
grabExcessHorizontalSpace="true"/> | |
</Text.layoutData> | |
</Text> | |
<Text x:style="BORDER" text="{Binding Source={StaticResource myBooks}, Path=author}"> | |
<Text.layoutData> | |
<GridData horizontalAlignment="FILL" | |
grabExcessHorizontalSpace="true"/> | |
</Text.layoutData> | |
</Text> | |
</Shell> |