title: Styles in defined Window.Resources for a Catel Window do not apply to children of Window
body: <p>MainWindow.xaml</p>
  
  <pre><code>    &lt;catel:Window x:Class="Experimetns.MainWindow"
              xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
              xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
              xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
              xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
              xmlns:catel="http://schemas.catelproject.com"
              mc:Ignorable="d"
              Title="MainWindow" Height="450" Width="800"&gt;
          &lt;catel:Window.Resources&gt;
              &lt;Style TargetType="TextBox"&gt;
                  &lt;Setter Property="Foreground" Value="Red"&gt;&lt;/Setter&gt;
              &lt;/Style&gt;
          &lt;/catel:Window.Resources&gt;
          &lt;Grid&gt;
              &lt;Grid.ColumnDefinitions&gt;
                  &lt;ColumnDefinition Width="Auto"&gt;&lt;/ColumnDefinition&gt;
              &lt;/Grid.ColumnDefinitions&gt;
              &lt;Grid.RowDefinitions&gt;
                  &lt;RowDefinition Height="Auto"&gt;&lt;/RowDefinition&gt;
              &lt;/Grid.RowDefinitions&gt;
              &lt;TextBox Height="30px" Width="100" Grid.Row="0" Grid.Column="0"&gt;&lt;/TextBox&gt;
          &lt;/Grid&gt;
  
      &lt;/catel:Window&gt;
  </code></pre>
  
  <p>The <code>ForeColor</code> setting above does not apply to the <code>TextBox</code> whereas the below works</p>
  
  <pre><code>    &lt;catel:Window x:Class="Experimetns.MainWindow"
              xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
              xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
              xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
              xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
              xmlns:catel="http://schemas.catelproject.com"
              mc:Ignorable="d"
              Title="MainWindow" Height="450" Width="800"&gt;
          &lt;catel:Window.Resources&gt;
              &lt;Style TargetType="TextBox"&gt;
                  &lt;Setter Property="Foreground" Value="Red"&gt;&lt;/Setter&gt;
              &lt;/Style&gt;
          &lt;/catel:Window.Resources&gt;
          &lt;Grid&gt;
  
              &lt;Grid.Resources&gt;
                  &lt;Style TargetType="TextBox"&gt;
                      &lt;Setter Property="Foreground" Value="Red"&gt;&lt;/Setter&gt;
                  &lt;/Style&gt;
              &lt;/Grid.Resources&gt;
              &lt;Grid.ColumnDefinitions&gt;
                  &lt;ColumnDefinition Width="Auto"&gt;&lt;/ColumnDefinition&gt;
              &lt;/Grid.ColumnDefinitions&gt;
              &lt;Grid.RowDefinitions&gt;
                  &lt;RowDefinition Height="Auto"&gt;&lt;/RowDefinition&gt;
              &lt;/Grid.RowDefinitions&gt;
              &lt;TextBox Height="30px" Width="100" Grid.Row="0" Grid.Column="0"&gt;&lt;/TextBox&gt;
          &lt;/Grid&gt;
  
      &lt;/catel:Window&gt;
  </code></pre>
  
  <p>Does anyone have an explanation?</p>