Skip to content

Instantly share code, notes, and snippets.

@RomiTT
Created October 14, 2020 09:10

Revisions

  1. RomiTT created this gist Oct 14, 2020.
    16 changes: 16 additions & 0 deletions XAML Storyboard with path data.xaml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,16 @@
    <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>