<Shell xmlns="http://www.eclipse.org/xwt/presentation" | |
xmlns:x="http://www.eclipse.org/xwt" | |
xmlns:y="clr-namespace:org.eclipse.xwt.tests.databinding" | |
Size="400, 300"> | |
<Shell.layout> | |
<GridLayout numColumns="3"/> | |
</Shell.layout> | |
<Shell.Resources> | |
<XmlDataProvider x:Key="myBooks" Source="books.xml"> | |
</XmlDataProvider> | |
</Shell.Resources> | |
<Label text="Name"/> | |
<Text x:style="BORDER" text="{Binding Source={StaticResource myBooks}, path=//book[author='Neal Stephenson']/title/text()}"> | |
<Text.layoutData> | |
<GridData horizontalAlignment="FILL" | |
grabExcessHorizontalSpace="true"/> | |
</Text.layoutData> | |
</Text> | |
<Label text="{Binding Source={StaticResource myBooks}, path=//book[author='Neal Stephenson']/title/text()}"> | |
<Label.layoutData> | |
<GridData horizontalAlignment="FILL" | |
grabExcessHorizontalSpace="true"/> | |
</Label.layoutData> | |
</Label> | |
</Shell> |