I am using MahApps.Metro, version 0.11.0.9-ALPHA for .NET 4.5. and want to know how to best reference their resource dictionaries.
I was told that I should not refer to them as unified dictionaries in App.xaml. If this is not the case, do I need to add them as Window.Resources for each window?
I did it:
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Colours.xaml" />
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Fonts.xaml" />
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.xaml" />
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Accents/Red.xaml" />
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Accents/BaseLight.xaml" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Application.Resources>
The problem is that some controls are funky, for example, the minimize, maximize and close buttons in the window are displayed as black blocks without text. When I refer to these resource dictionaries as Window.Resources, everything works fine ...
source
share