title: Wpf window title from static resource
body: <p>I am using resource dictionarys for localizations, I have this code in wpf:</p>
  
  <pre><code>&lt;Window x:Class="RWIS_WPF.MainWindow"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  
      Title="RWIS" Height="500" Width="800" MinHeight="500" MinWidth="800"&gt;
  
      &lt;Window.Resources&gt;
          &lt;ResourceDictionary&gt;
              &lt;ResourceDictionary.MergedDictionaries&gt;
                  &lt;ResourceDictionary Source="Localizations/Dictionary.EN.xaml" /&gt;
              &lt;/ResourceDictionary.MergedDictionaries&gt;
          &lt;/ResourceDictionary&gt;
      &lt;/Window.Resources&gt;
  </code></pre>
  
  <p>My problem is, that I want to localize window title using <code>{StaticResource mW_screen1}</code></p>
  
  <pre><code>    &lt;Window x:Class="RWIS_WPF.MainWindow"
              xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
              xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  
              Title="{StaticResource IT_IS_NOT_WORKING}" Height="500" Width="800"
              MinHeight="500" MinWidth="800"&gt;
  
              &lt;Window.Resources&gt;
                &lt;ResourceDictionary&gt;
                  &lt;ResourceDictionary.MergedDictionaries&gt;
                      &lt;ResourceDictionary Source="Localizations/Dictionary.EN.xaml" /&gt;
                  &lt;/ResourceDictionary.MergedDictionaries&gt;
               &lt;/ResourceDictionary&gt;
              &lt;/Window.Resources&gt;
              &lt;TextBlock Text="{StaticResource IT_IS_WORKING}"&gt;&lt;/TextBlock&gt;
  </code></pre>
  
  <p>But it is not working, because resource is defined after title is calling it. It will give me error when I try to run it</p>
  
  <blockquote>
    <p>System.Windows.Markup.XamlParseException occurred   Message='Provide
    value on 'System.Windows.StaticResourceExtension' threw an exception.'
    Line number '6' and line position '9'.</p>
  </blockquote>
  
  <p>It is working for headers, text after adding resource</p>
  
  <p>I have tried to call it in c# code, but i was not succesful.<br>
  I know there is option:</p>
  
  <pre><code>&lt;Window.Title&gt;&lt;/Window.Title&gt;
  </code></pre>
  
  <p>but there is no argument like text or value, where can i put <code>Text="{StaticResource IT_IS_WORKING}"</code></p>