I want to give a hint - that a Slider
is moveable. For this I want to make it bounce when it got focus.
I have so far an animation that makes it at least side it to a Value
, but I want it to slide back after it or even make it a bit bounce.
This is the Trigger
part of my custom Slider
.
<ControlTemplate.Triggers>
<EventTrigger RoutedEvent="UIElement.GotFocus">
<BeginStoryboard>
<Storyboard>
<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(RangeBase.Value)" >
<EasingDoubleKeyFrame KeyTime="0:0:1" Value="90"/>
</DoubleAnimationUsingKeyFrames>
</Storyboard>
</BeginStoryboard>
</EventTrigger>
</ControlTemplate.Triggers>
Is there a better event maybe too?