<Shell xmlns="http://www.eclipse.org/xwt/presentation" | |
xmlns:x="http://www.eclipse.org/xwt" | |
name="window" | |
> | |
<Shell.layout> | |
<GridLayout numColumns="1"/> | |
</Shell.layout> | |
<Label name="labelTarget" text="BackEase the animation"/> | |
<Button name="startButton" text="Start Animation in EaseIn"> | |
<Button.triggers> | |
<!-- Begin the Storyboard --> | |
<EventTrigger routedEvent="SelectionEvent"> | |
<BeginStoryboard name="MyBeginStoryboard"> | |
<Storyboard> | |
<PointAnimation | |
targetName="window" | |
targetProperty="location" | |
duration="0:0:6" from="300, 300" to="600, 600"> | |
<PointAnimation.EasingFunction> | |
<BackEase amplitude="1" EasingMode="EaseIn"/> | |
</PointAnimation.EasingFunction> | |
</PointAnimation> | |
</Storyboard> | |
</BeginStoryboard> | |
</EventTrigger> | |
</Button.triggers> | |
</Button> | |
<Button name="startButton" text="Start Animation in EaseOut"> | |
<Button.triggers> | |
<!-- Begin the Storyboard --> | |
<EventTrigger routedEvent="SelectionEvent"> | |
<BeginStoryboard name="MyBeginStoryboard"> | |
<Storyboard> | |
<PointAnimation | |
targetName="window" | |
targetProperty="location" | |
duration="0:0:6" from="300, 300" to="600, 600"> | |
<PointAnimation.EasingFunction> | |
<BackEase amplitude="1" EasingMode="EaseOut"/> | |
</PointAnimation.EasingFunction> | |
</PointAnimation> | |
</Storyboard> | |
</BeginStoryboard> | |
</EventTrigger> | |
</Button.triggers> | |
</Button> | |
<Button name="startButton" text="Start Animation in EaseInOut"> | |
<Button.triggers> | |
<!-- Begin the Storyboard --> | |
<EventTrigger routedEvent="SelectionEvent"> | |
<BeginStoryboard name="MyBeginStoryboard"> | |
<Storyboard> | |
<PointAnimation | |
targetName="window" | |
targetProperty="location" | |
duration="0:0:6" from="300, 300" to="600, 600"> | |
<PointAnimation.EasingFunction> | |
<BackEase amplitude="1" EasingMode="EaseInOut"/> | |
</PointAnimation.EasingFunction> | |
</PointAnimation> | |
</Storyboard> | |
</BeginStoryboard> | |
</EventTrigger> | |
</Button.triggers> | |
</Button> | |
</Shell> |