title: Make a door in windows 8 app using xaml and c#
body: <p>I have one grid and two stackpanels.I already made animation to open the door in blend the having problem in setting the door in different resolution.
  Here is my code which works fine in 1024,768 resolution.</p>
  
  <p>
          
              
          
          </p>
  
  <pre><code>        &lt;StackPanel.Background&gt;
              &lt;ImageBrush ImageSource="Assets/left.jpg"&gt;&lt;/ImageBrush&gt;
          &lt;/StackPanel.Background&gt;
      &lt;/StackPanel&gt;
  
      &lt;StackPanel x:Name="stackPanel1" Width="512" Height="{Binding ElementName=mygrid,Path=ActualHeight}" HorizontalAlignment="Right"&gt;
  
          &lt;StackPanel.Background&gt;
              &lt;ImageBrush ImageSource="Assets/right.jpg"&gt;&lt;/ImageBrush&gt;
          &lt;/StackPanel.Background&gt;
      &lt;/StackPanel&gt;
  
  &lt;/Grid&gt;``
  </code></pre>