<Composite xmlns="http://www.eclipse.org/xwt/presentation" | |
xmlns:x="http://www.eclipse.org/xwt" | |
x:Class="org.eclipse.xwt.tests.annotation.ButtonHandler_rename"> | |
<Composite.layout> | |
<GridLayout numColumns="1"/> | |
</Composite.layout> | |
<Button name="labelTarget" x:style="SWT.RADIO" text="Move mouse in button to see the animation"> | |
<Button.triggers> | |
<!-- Begin the Storyboard --> | |
<EventTrigger routedEvent="SelectionEvent"> | |
<BeginStoryboard name="MyBeginStoryboard"> | |
<Storyboard> | |
<ColorAnimation | |
targetProperty="foreground" | |
duration="0:0:1" from="red" to="blue" /> | |
</Storyboard> | |
</BeginStoryboard> | |
</EventTrigger> | |
</Button.triggers> | |
</Button> | |
</Composite> |