blob: 68a316ebc7a7347fcb2e6a5eefe6e9dfd09171fb [file] [log] [blame]
<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"
DataContext="{StaticResource myData}">
<Shell.layout>
<GridLayout numColumns="3"/>
</Shell.layout>
<Shell.Resources>
<y:Person x:Key="myData"/>
</Shell.Resources>
<Label text="Name"/>
<Text x:style="BORDER" text="{Binding Path=age}">
<Text.layoutData>
<GridData horizontalAlignment="FILL"
grabExcessHorizontalSpace="true"/>
</Text.layoutData>
</Text>
<Label text="{Binding Path=age}">
<Label.layoutData>
<GridData horizontalAlignment="FILL"
grabExcessHorizontalSpace="true"/>
</Label.layoutData>
</Label>
</Shell>