blob: 93f37667ba9f270fe96a9ce605429cb9d29ad0d0 [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=name}">
<Text.layoutData>
<GridData horizontalAlignment="FILL"
grabExcessHorizontalSpace="true"/>
</Text.layoutData>
</Text>
<Label>
<Label.text>
<Binding path="name">
<Binding.converter>
<y:MyConverter/>
</Binding.converter>
</Binding>
</Label.text>
<Label.layoutData>
<GridData horizontalAlignment="FILL"
grabExcessHorizontalSpace="true"/>
</Label.layoutData>
</Label>
</Shell>