title: Grid and StackPanel, which has the better performance?
body: <p>Let's read these codes, I've defined two similar UserControls in a Windows Phone 8 project and I really want to which of them is better. I've check the profiling, it seems they are almost the same.</p>
  
  <p>UserControl 1, using grid's property to design my layout.</p>
  
  <pre><code>&lt;Grid x:Name="LayoutRoot" Background="{StaticResource PhoneChromeBrush}" Height="108"&gt;
      &lt;Grid.RowDefinitions&gt;
          &lt;RowDefinition Height="Auto"&gt;&lt;/RowDefinition&gt;
          &lt;RowDefinition Height="Auto"&gt;&lt;/RowDefinition&gt;
      &lt;/Grid.RowDefinitions&gt;
  
      &lt;Grid.ColumnDefinitions&gt;
          &lt;ColumnDefinition Width="Auto"&gt;&lt;/ColumnDefinition&gt;
          &lt;ColumnDefinition Width="*"&gt;&lt;/ColumnDefinition&gt;
      &lt;/Grid.ColumnDefinitions&gt;
  
      &lt;Rectangle Grid.RowSpan="2" Grid.Row="0" Height="108" Width="54" Fill="Blue"&gt;&lt;/Rectangle&gt;
      &lt;TextBlock Grid.Row="0" Grid.Column="1" Text="Caption" Style="{StaticResource PhoneTextExtraLargeStyle}"&gt;&lt;/TextBlock&gt;
      &lt;TextBlock Grid.Row="1" Grid.Column="1" Text="URLURLURLURLURLURL" Style="{StaticResource PhoneTextSmallStyle}"&gt;&lt;/TextBlock&gt;
  &lt;/Grid&gt;
  </code></pre>
  
  <p>UserControl 2, using StackPanel to design my layout.</p>
  
  <pre><code>&lt;Grid x:Name="LayoutRoot" Background="{StaticResource PhoneChromeBrush}" Height="108"&gt;
      &lt;StackPanel Orientation="Horizontal"&gt;
          &lt;Rectangle Height="108" Width="54" Fill="Red"&gt;&lt;/Rectangle&gt;
          &lt;StackPanel Orientation="Vertical"&gt;
              &lt;TextBlock Text="Caption" Style="{StaticResource PhoneTextExtraLargeStyle}"&gt;&lt;/TextBlock&gt;
              &lt;TextBlock Text="URLURLURLURLURLURL" Style="{StaticResource PhoneTextSmallStyle}"&gt;&lt;/TextBlock&gt;
          &lt;/StackPanel&gt;
      &lt;/StackPanel&gt;
  &lt;/Grid&gt;
  </code></pre>
  
  <p>It looks like the basic layout is the same. But when I use XAML Spy to analyse the Visualizing tree, UserControl 1 has less nodes, but it costs a little more memory. Why?</p>