Skip to content

Instantly share code, notes, and snippets.

@mohamedmansour
Created July 3, 2014 19:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mohamedmansour/9fa64785496ceeabd991 to your computer and use it in GitHub Desktop.
Save mohamedmansour/9fa64785496ceeabd991 to your computer and use it in GitHub Desktop.
Pulse Animation in XAML
<UserControl.Resources>
<Storyboard x:Name="StartAnimation">
<DoubleAnimation RepeatBehavior="Forever" Duration="0:0:1" To="360" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.Rotation)" Storyboard.TargetName="ProgressArc"/>
<DoubleAnimation Duration="0:0:0.5" RepeatBehavior="Forever" AutoReverse="True" From="25" To="35" Storyboard.TargetName="IndicatorRing" Storyboard.TargetProperty="StrokeThickness"/>
<DoubleAnimation Duration="0:0:0.5" RepeatBehavior="Forever" AutoReverse="True" From="350" To="370" Storyboard.TargetName="IndicatorRing" Storyboard.TargetProperty="Height"/>
<DoubleAnimation Duration="0:0:0.5" RepeatBehavior="Forever" AutoReverse="True" From="350" To="370" Storyboard.TargetName="IndicatorRing" Storyboard.TargetProperty="Width"/>
</Storyboard>
</UserControl.Resources>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment