title: Creating Storyboard in code behind in WPF
body: <p>The following code is working fine.</p>
  
  <pre><code>&lt;Window.Triggers&gt;
      &lt;EventTrigger RoutedEvent="Window.Loaded"&gt;
          &lt;BeginStoryboard&gt;
              &lt;Storyboard&gt;
                  &lt;DoubleAnimation Duration="0:0:.8" Storyboard.TargetProperty="Left" From="1920" To="0" AccelerationRatio=".1"/&gt;
              &lt;/Storyboard&gt;
          &lt;/BeginStoryboard&gt;
      &lt;/EventTrigger&gt;
  &lt;/Window.Triggers&gt;
  </code></pre>
  
  <p>But in this <code>From</code> and <code>To</code> values are <em>static</em>. I need to pass the values dynamically based system resolution. So i need it to be created in code behind. Is it possible to do ?</p>
  
  <p>How to convert it to codebehind?</p>