blob: b787dff4ce7d7efe30b8ad42449920577f8932f2 [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.others"
x:Class="org.eclipse.xwt.tests.databinding.others.EventHandler"
x:Name="Root"
Size="400, 300"
DataContext="{StaticResource myData}">
<Shell.layout>
<GridLayout numColumns="2"/>
</Shell.layout>
<Shell.Resources>
<y:DataFactory x:Key="myData"/>
</Shell.Resources>
<Label text="Name"/>
<Text x:style="BORDER|READONLY" text="{Binding Path=text}" enabled="{Binding Path=enabled}" visible="{Binding Path=visible}" background="{Binding Path=background}" foreground="{Binding Path=foreground}" >
<Text.layoutData>
<GridData horizontalAlignment="FILL"
grabExcessHorizontalSpace="true"/>
</Text.layoutData>
</Text>
<Group text="options">
<Group.layoutData>
<GridData horizontalAlignment="FILL"
grabExcessHorizontalSpace="true" horizontalSpan="2"/>
</Group.layoutData>
<Group.layout>
<GridLayout numColumns="2"/>
</Group.layout>
<Button x:style="CHECK" selection="{Binding Path=enabled}" text="enabled"/>
<Button x:style="CHECK" selection="{Binding Path=visible}" text="visible"/>
<Text x:style="BORDER" text="{Binding Path=text}" >
<Text.layoutData>
<GridData horizontalAlignment="FILL"
grabExcessHorizontalSpace="true" horizontalSpan="2"/>
</Text.layoutData>
</Text>
<Button x:style="RADIO" selection="true" text="Background(GRAY)" SelectionEvent="setColorGray"/>
<Button x:style="RADIO" text="Background(YELLOW)" SelectionEvent="setColorYellow"/>
</Group>
</Shell>