title: windows 8 popup location
body: <p>While porting a WPF application over to a Windows 8 instance (x64) runing under VMware, I found that all of the popups are mis-aligned against what they are supposed to be. Further investigations reveal that this is a common "problem" even for a newly created project. The popup control of WPF seems to have changed the meaning of left and right! The problem can be show by creating a wpf application using vs 2012 and put some popups in it, like:</p>
  
  <pre><code>&lt;Grid Background="Gray"&gt;
      &lt;Grid.ColumnDefinitions&gt;
          &lt;ColumnDefinition Width="129*"/&gt;
          &lt;ColumnDefinition Width="264*"/&gt;
          &lt;ColumnDefinition Width="124*"/&gt;
      &lt;/Grid.ColumnDefinitions&gt;
      &lt;Grid.RowDefinitions&gt;
          &lt;RowDefinition Height="30"/&gt;
          &lt;RowDefinition Height="30"/&gt;
          &lt;RowDefinition Height="*"/&gt;
      &lt;/Grid.RowDefinitions&gt;
      &lt;DockPanel Grid.Row="1" Grid.Column="1" Background="LightGray"&gt;
          &lt;Popup StaysOpen="True" IsOpen="True" Grid.RowSpan="2" Placement="Right"  AllowsTransparency="True" &gt;
              &lt;TextBlock Text="Right" Foreground="White" /&gt;
          &lt;/Popup&gt;
          &lt;Popup StaysOpen="True" IsOpen="True" Grid.RowSpan="2" Placement="Left" AllowsTransparency="True"  &gt;
              &lt;TextBlock Text="Left" Foreground="White" /&gt;
          &lt;/Popup&gt;
          &lt;Popup StaysOpen="True" IsOpen="True" Grid.RowSpan="2" Placement="Top"  AllowsTransparency="True" &gt;
              &lt;TextBlock Text="Top" Foreground="White" /&gt;
          &lt;/Popup&gt;
          &lt;Popup StaysOpen="True" IsOpen="True" Grid.RowSpan="2" Placement="Bottom"  AllowsTransparency="True"  &gt;
              &lt;TextBlock Text="Bottom" Foreground="White" /&gt;
          &lt;/Popup&gt;
      &lt;/DockPanel&gt;
  &lt;/Grid&gt;
  </code></pre>
  
  <p>The popup that is supposed to be displayed on the left is actually displayed on the right and vice versa, the one that is supposed to be at the bottom left is displayed at bottom right, etc..</p>
  
  <p>My question is: 1) is this a bug or feature? 2) if it is a feature, how to make minimun changes to the codes so that they perform in the same way inside Windows 7 and Windows 8?</p>