title: WindowsFormsHost not showing when Wpf Window style is set
body: <p>I have a WPF Window that has a WinForms Button inside. When I set the Style of the Window the button isn't rendered, but when the Window Style is not set the Button appears as it should be.</p>
  
  <p>Window Xaml:</p>
  
  <pre><code>&lt;Window x:Class="Telbit.TeStudio.View.Forms.FloatingTestComponentsBrowser"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:wf="clr-namespace:System.Windows.Forms;assembly=System.Windows.Forms"
      Title="Test Components Browser" Style="{DynamicResource TSHUD}"
      SizeToContent="WidthAndHeight" Closing="Window_Closing" &gt;
  
      &lt;Grid Name="windowContent" Height="300" Width="300"&gt;
              &lt;WindowsFormsHost HorizontalAlignment="Stretch" VerticalAlignment="Stretch"&gt;
                      &lt;wf:Button Text="Try" Name="btnTry" MaximumSize="100,25" BackColor="LightGray"/&gt;
              &lt;/WindowsFormsHost&gt;
      &lt;/Grid&gt;
  &lt;/Window&gt;
  </code></pre>
  
  <p>Here is the Style for the window:</p>
  
  <pre><code>&lt;Style x:Key="TSHUD" TargetType="{x:Type Window}"&gt;
      &lt;Setter Property="ShowInTaskbar" Value="False"/&gt;
      &lt;Setter Property="BorderThickness" Value="0px"/&gt;
      &lt;Setter Property="AllowsTransparency" Value="True"/&gt;
      &lt;Setter Property="WindowStyle" Value="None"/&gt;
      &lt;Setter Property="Template"&gt;
          &lt;Setter.Value&gt;
              &lt;ControlTemplate TargetType="{x:Type Window}"&gt;
                  &lt;Grid x:Name="LayoutRoot"&gt;
                      &lt;Rectangle Fill="#ED111F29" Stroke="Black" Margin="29,29,29,29" RadiusX="3" RadiusY="3" Effect="{DynamicResource TSWindowShadow}"/&gt;
  
                      &lt;Rectangle Name="TSHUDHeader" Stroke="Black" Margin="29,29,29,29" VerticalAlignment="Top" Height="25" RadiusX="3" RadiusY="3"&gt;
                          &lt;Rectangle.Fill&gt;
                              &lt;LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0"&gt;
                                  &lt;GradientStop Color="#ED1F3A45"/&gt;
                                  &lt;GradientStop Color="#EC111F29" Offset="1"/&gt;
                              &lt;/LinearGradientBrush&gt;
                          &lt;/Rectangle.Fill&gt;
                      &lt;/Rectangle&gt;
  
                      &lt;Rectangle Name="TSHUDHeaderSplitter" Fill="#ED374551" Margin="30,54,30,29" VerticalAlignment="Top" Height="1"/&gt;
  
                      &lt;Label Name="TSHudTitle" Background="Transparent"
                                 Margin="41,34,41,29" Padding="0"
                                 HorizontalAlignment="Stretch" VerticalAlignment="Top" Height="20" &gt;
                          &lt;TextBlock Text="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Window}, AncestorLevel=1}, Path=Title}"
                                     TextWrapping="Wrap" Foreground="#FF8395B1" FontWeight="Bold"/&gt;
                      &lt;/Label&gt;
  
                      &lt;ContentPresenter/&gt;
                  &lt;/Grid&gt;
              &lt;/ControlTemplate&gt;
          &lt;/Setter.Value&gt;
      &lt;/Setter&gt;
  &lt;/Style&gt;
  </code></pre>
  
  <p>I have other windows with the same style but only with WPF controls (some with default style and some with custom style) and there is no problem.</p>
  
  <p>I've tried to <a href="http://msdn.microsoft.com/en-us/library/ms750800.aspx" rel="noreferrer">Enable Visual Styles</a> with no luck..</p>
  
  <p>Thanks in advance for any help...</p>