title: Mahapps , icons not working
body: <p>Posting this along with GitHub , may be someone from here has faced the same issue. I tried today with various options but was unable to get this working. </p>
  
  <p>I have installed the MahApps.Metro from nugget. After that I installed the MahApps.Metro.Resources as well. This created a folder called resources in my project. I use the icons.xaml file in my window resources. I used some icons in the buttons of my usercontrol (embedded in main window within a content control). But when I run the icons do not appear. only the gray circle is visible.</p>
  
  <p>I opened the icons.xaml and saw the Fill property where Fill={DynamicResource BlackBrush} is error out. If I change the fill to Fill="Black" then I can see the icons. But if the Accent is Dark it creates an issue as icons color do not change dynamically.</p>
  
  <p>Based on the feedback in GitHub I  tried creating a small WPF sample. I added nugget Mahapps.metro and Mahapps.metro.resources I created a window, refrenced all MahApps.Metro xaml with the resources xaml. Then I added a User control in the project with same responses. In the user control I added a button and I added a button in the window as well. When I run the sample I donot see any of the icons (in window direct as well as within user control)</p>
  
  <p>When I compare with the demo application I do not see any difference apart from the fact that in demo you have a separate class library for the icons.xaml.</p>
  
  <p>Below is my code. </p>
  
  <p>Main Window:</p>
  
  <pre><code>&lt;Window x:Class="TestApp.Demo.MainWindow"
          xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
          xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
          xmlns:Controls="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
          xmlns:local="clr-namespace:TestApp.Demo"
          Title="MainWindow" Height="350" Width="525"&gt;
      &lt;Window.Resources&gt;
          &lt;ResourceDictionary&gt;
              &lt;ResourceDictionary.MergedDictionaries&gt;
                  &lt;ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.xaml" /&gt;
                  &lt;ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Fonts.xaml" /&gt;
                  &lt;ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Colors.xaml" /&gt;
                  &lt;ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Accents/Blue.xaml" /&gt;
                  &lt;ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Accents/BaseLight.xaml" /&gt;
                  &lt;!--&lt;ResourceDictionary Source="pack://application:,,,/TestApp.Demo;component/Resources/Icons.xaml" /&gt;--&gt;
                  &lt;ResourceDictionary Source="/Resources/Icons.xaml" /&gt;
              &lt;/ResourceDictionary.MergedDictionaries&gt;
  
          &lt;/ResourceDictionary&gt;
      &lt;/Window.Resources&gt;
      &lt;Grid&gt;
          &lt;Grid.RowDefinitions&gt;
              &lt;RowDefinition Height="auto"/&gt;
              &lt;RowDefinition Height="*"/&gt;
          &lt;/Grid.RowDefinitions&gt;
          &lt;Button Grid.Row="0" Width="50" 
   Height="50" 
  Style="{DynamicResource MetroCircleButtonStyle}"&gt;
              &lt;Rectangle Width="20" 
  Height="20" 
  Fill="{Binding Path=Foreground, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Button}}}"&gt;
                  &lt;Rectangle.OpacityMask&gt;
                      &lt;VisualBrush Stretch="Fill" 
                      Visual="{DynamicResource appbar_city}" /&gt;
                  &lt;/Rectangle.OpacityMask&gt;
              &lt;/Rectangle&gt;
          &lt;/Button&gt;
          &lt;local:UCTest Grid.Row="1"/&gt;
      &lt;/Grid&gt;
  &lt;/Window&gt;
  </code></pre>
  
  <p>Below is the user control code:</p>
  
  <pre><code>&lt;UserControl x:Class="TestApp.Demo.UCTest"
               xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
               xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
               xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
               xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
               xmlns:Controls="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
               mc:Ignorable="d" 
               d:DesignHeight="300" d:DesignWidth="300"&gt;
      &lt;UserControl.Resources&gt;
          &lt;ResourceDictionary&gt;
                      &lt;ResourceDictionary.MergedDictionaries&gt;
                          &lt;ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.xaml" /&gt;
                          &lt;ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Fonts.xaml" /&gt;
                          &lt;ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Colors.xaml" /&gt;
                          &lt;ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Accents/Blue.xaml" /&gt;
                          &lt;ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Accents/BaseLight.xaml" /&gt;
                          &lt;ResourceDictionary Source="pack://application:,,,/TestApp.Demo;component/Resources/Icons.xaml" /&gt;
              &lt;/ResourceDictionary.MergedDictionaries&gt;
                  &lt;/ResourceDictionary&gt;
      &lt;/UserControl.Resources&gt;
      &lt;Grid&gt;
          &lt;Grid&gt;
              &lt;Button Width="50" 
   Height="50" 
  Style="{DynamicResource MetroCircleButtonStyle}"&gt;
                  &lt;Rectangle Width="20" 
  Height="20" 
  Fill="{Binding Path=Foreground, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Button}}}"&gt;
                      &lt;Rectangle.OpacityMask&gt;
                          &lt;VisualBrush Stretch="Fill" 
                      Visual="{DynamicResource appbar_city}" /&gt;
                      &lt;/Rectangle.OpacityMask&gt;
                  &lt;/Rectangle&gt;
              &lt;/Button&gt;
  
          &lt;/Grid&gt;
      &lt;/Grid&gt;
  &lt;/UserControl&gt;
  </code></pre>
  
  <p>Am I missing something here ?
  •Girija</p>