title: Infinitely rotate rectangle in XAML
body: <p>How to define XAML to rotate a rectangle infinitely?</p>
  <p>So far I found a solution with code but no xaml:
  <a href="http://www.codeproject.com/Articles/23257/Beginner-s-WPF-Animation-Tutorial" rel="nofollow noreferrer">http://www.codeproject.com/Articles/23257/Beginner-s-WPF-Animation-Tutorial</a>
  which I use like this:</p>
  <pre class="lang-cs prettyprint-override"><code>private void Window_Loaded_1(object sender, RoutedEventArgs e)
  {
      var doubleAnimation = new DoubleAnimation(360, 0, new Duration(TimeSpan.FromSeconds(1)));
      var rotateTransform = new RotateTransform();
      
      rect1.RenderTransform = rotateTransform;
      rect1.RenderTransformOrigin = new Point(0.5, 0.5);
      doubleAnimation.RepeatBehavior = RepeatBehavior.Forever;
      
      rotateTransform.BeginAnimation(RotateTransform.AngleProperty, doubleAnimation);
  }
  </code></pre>
  <p>But how can I achieve this with XAML only?</p>