title: How to rotate animation my button when click in c# wpf
body: <p>these are my declaration for my DoubleAnimation and storyboard</p>
  <pre><code>private Storyboard openmenurotateSB;
  
  DoubleAnimation openMenuRotate = new DoubleAnimation();
  openMenuRotate.From = 0;
  openMenuRotate.To = 90;
  openMenuRotate.Duration = new Duration(TimeSpan.FromMilliseconds(1000));
  openMenuRotate.FillBehavior = FillBehavior.Stop;
  openMenuRotate.AutoReverse = true;
  openmenurotateSB = new Storyboard();
  openmenurotateSB.Children.Add(openMenuRotate);
  Storyboard.SetTargetName(openMenuRotate, OpenMenuButton.Name);
  Storyboard.SetTargetProperty(openMenuRotate, new PropertyPath(RotateTransform.AngleProperty));
  </code></pre>
  <p>when click, begin rotate animation</p>
  <pre><code>private void OpenMenu_Click(object sender, RoutedEventArgs e)
          {
              openmenurotateSB.Begin(OpenMenuButton);
          }
  </code></pre>
  <p>There is no any error or exception, it just does not work.</p>
  <p>Thanks in advance.</p>
  <p>Xing Yik</p>