Skip to content

Instantly share code, notes, and snippets.

@RomiTT
Created October 14, 2020 09:10
Show Gist options
  • Save RomiTT/d99daac1c28ab118e5336bfad569f63a to your computer and use it in GitHub Desktop.
Save RomiTT/d99daac1c28ab118e5336bfad569f63a to your computer and use it in GitHub Desktop.
XAML Storyboard with path data #XAML
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="playShape"
Storyboard.TargetProperty="Data"
Duration="0:0:0.5">
<ObjectAnimationUsingKeyFrames.KeyFrames>
<DiscreteObjectKeyFrame KeyTime="0:0:0">
<DiscreteObjectKeyFrame.Value>
<Geometry>M 0,0 0,20 14,10 14,10 L 0,0</Geometry>
</DiscreteObjectKeyFrame.Value>
</DiscreteObjectKeyFrame>
<DiscreteObjectKeyFrame KeyTime="0:0:0.5">
<DiscreteObjectKeyFrame.Value>
<Geometry>M 0,0 0,20 20,20 20,0 L 0,0</Geometry>
</DiscreteObjectKeyFrame.Value>
</DiscreteObjectKeyFrame>
</ObjectAnimationUsingKeyFrames.KeyFrames>
</ObjectAnimationUsingKeyFrames>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment