title: How could I access wpf window resoures
body: <p>I have this xaml</p>
  
  <pre><code>&lt;mui:ModernWindow x:Uid="mui:ModernWindow_1" x:Class="App1.HomePage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:mui="http://firstfloorsoftware.com/ModernUI"
    xmlns:sys="clr-namespace:System;assembly=mscorlib"
    ContentSource="/Window1.xaml"
    Title="MainWindow" Height="350" Width="525" WindowState="Maximized" MenuLinkGroups="{Binding menuLinkGroups}"&gt;
      &lt;mui:ModernWindow.Resources&gt;
          &lt;sys:String x:Key="ApplicationName"&gt;Bla Bla&lt;/sys:String&gt;
      &lt;/mui:ModernWindow.Resources&gt;
      &lt;Grid Style="{StaticResource ContentRoot}" Name="mainGrid"&gt;
      &lt;/Grid&gt;
  &lt;/mui:ModernWindow&gt;
  </code></pre>
  
  <p>I need to reference current window resources, so I used this:</p>
  
  <pre><code>object obj = this.Resources["ApplicationName"];
  </code></pre>
  
  <p>But <strong>this.Resources</strong> doesn't have any resource! so <strong>obj</strong> is always null. How could I reference this window resources?</p>