.NET WPF 抖动动画
Demo
Code
<!-- 水平抖动 -->
<Button Content="Hello World">
<Button.RenderTransform>
<TranslateTransform x:Name="translateTransform" />
</Button.RenderTransform>
<Button.Triggers>
<EventTrigger RoutedEvent="Button.MouseEnter">
<BeginStoryboard>
<BeginStoryboard.Storyboard>
<Storyboard>
<DoubleAnimation
Storyboard.TargetName="translateTransform"
Storyboard.TargetProperty="X"
To="2"
Duration="0:0:0.075" />
<DoubleAnimation
BeginTime="0:0:0.075"
Storyboard.TargetName=