Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
1.1 kB
2
Indexable
Never
<Window x:Class="WpfApplication1.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow"Height="350"Width="525">
<Grid>
<EllipseFill="Aqua"Height="50"Width="60"Margin="0"HorizontalAlignment="Left"VerticalAl
ignment="Top">
<Ellipse.Triggers>
<EventTriggerRoutedEvent="Ellipse.MouseLeftButtonDown">
<EventTrigger.Actions>
<BeginStoryboard>
<StoryboardStoryboard.TargetProperty="(Ellipse.RenderTransform).(TranslateTransform.X)
">
<DoubleAnimationDuration="0:0:1"To="300"AccelerationRatio=".1"/>
</Storyboard>
</BeginStoryboard>
<!-- Y ekranında da kaysın diyorsanız<BeginStoryboard>
<StoryboardStoryboard.TargetProperty="(Ellipse.RenderTransform).(TranslateTransform.Y)
">
<DoubleAnimationDuration="0:0:1" To="200" AccelerationRatio=".1"/>
</Storyboard>
</BeginStoryboard>-->
</EventTrigger.Actions>
</EventTrigger>
</Ellipse.Triggers>
<Ellipse.RenderTransform>
<TranslateTransform X="0" Y="0"/>
</Ellipse.RenderTransform>
</Ellipse>
</Grid>
</Window>