title: How to draw this WPF Path in C#
body: <p>I have been struggling to convert this piece of WPF code to C#. I am relatively new to WPF, and I really hope someone can help me out here :) </p>
  
  <p></p>
  
  <pre><code>    &lt;Path Fill="Blue" Margin="15,15,15,15"&gt;
          &lt;Path.Data&gt;
              &lt;EllipseGeometry x:Name="MyAnimatedEllipseGeometry"
                  Center="10,100" RadiusX="15" RadiusY="15" /&gt;
          &lt;/Path.Data&gt;
          &lt;Path.Triggers&gt;
              &lt;EventTrigger RoutedEvent="Path.Loaded"&gt;
                  &lt;BeginStoryboard Name="MyBeginStoryboard"&gt;
                      &lt;Storyboard&gt;
  
                          &lt;!-- Animates the ellipse along the path. --&gt;
                          &lt;PointAnimationUsingPath
                              Storyboard.TargetName="MyAnimatedEllipseGeometry"
                              Storyboard.TargetProperty="Center"
                              Duration="0:0:5" 
                              RepeatBehavior="Forever" &gt;
                              &lt;PointAnimationUsingPath.PathGeometry&gt;
                                  &lt;PathGeometry 
                                      Figures="M 10,100 C 35,0 135,0 160,100 135,0 35,0 10,100"
                                  /&gt;
                              &lt;/PointAnimationUsingPath.PathGeometry&gt;
                          &lt;/PointAnimationUsingPath&gt;
                      &lt;/Storyboard&gt;
                  &lt;/BeginStoryboard&gt;
              &lt;/EventTrigger&gt;
          &lt;/Path.Triggers&gt;
      &lt;/Path&gt;
  &lt;/Canvas&gt;
  </code></pre>
  
  <p>I seemed to get along just fine until I got to the PathGeometry Figures... If anyone can supply me with a C# code snippet of this WPF code, it will be greatly appreciated! </p>