title: silverlight animation not working
body: <p>This is the first time I am creating a silverlight animation. I have been struggling to create a simple animation for the last few days I just couldn't get it to work. I can't believe why it is so difficult.</p>
  
  <p><strong>Xaml:</strong></p>
  
  <pre><code>&lt;UserControl x:Class="BuzzLifeAppsSilverlight.MainPage"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
      mc:Ignorable="d"
      d:DesignHeight="300" d:DesignWidth="400"&gt;
      &lt;UserControl.Resources&gt;
          &lt;Storyboard x:Name="Storyboard1" AutoReverse="True" RepeatBehavior="Forever" BeginTime="1"&gt;
              &lt;DoubleAnimation Duration="0:0:2" To="-332" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateX)" Storyboard.TargetName="button1" d:IsOptimized="True"/&gt;
              &lt;DoubleAnimation Duration="0:0:2" To="-12" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateY)" Storyboard.TargetName="button1" d:IsOptimized="True"/&gt;
          &lt;/Storyboard&gt;
      &lt;/UserControl.Resources&gt;
  
      &lt;Canvas x:Name="LayoutRoot" Background="White"&gt;
          &lt;Button Canvas.Left="235" Canvas.Top="136" Content="Button" Height="23" Name="button1" Width="75" RenderTransformOrigin="0.5,0.5" &gt;
              &lt;Button.RenderTransform&gt;
                  &lt;CompositeTransform/&gt;
              &lt;/Button.RenderTransform&gt;
          &lt;/Button&gt;
      &lt;/Canvas&gt;
  &lt;/UserControl&gt;
  </code></pre>
  
  <p><strong>Code:</strong></p>
  
  <pre><code>public MainPage()
  {
      InitializeComponent();
  
      Storyboard1.Begin();
  }
  </code></pre>