© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2y ago
yatta

Cannot use AvalonDock Metro theme for ResourceDictionary after upgraded to .net5

I have a Styling library with the ResourceDictionary like this:
<ResourceDictionary.MergedDictionaries>
        <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.xaml" />
        <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Fonts.xaml" />
        <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Themes/Light.Cobalt.xaml" />
        <ResourceDictionary Source="pack://application:,,,/Xceed.Wpf.AvalonDock.Themes.Metro;component/Theme.xaml"/>
    </ResourceDictionary.MergedDictionaries>
<ResourceDictionary.MergedDictionaries>
        <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.xaml" />
        <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Fonts.xaml" />
        <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Themes/Light.Cobalt.xaml" />
        <ResourceDictionary Source="pack://application:,,,/Xceed.Wpf.AvalonDock.Themes.Metro;component/Theme.xaml"/>
    </ResourceDictionary.MergedDictionaries>

After I upgraded my application to .net5 and migrated to MahAppsv2. I got the error:
FileNotFoundException: Could not load file or assembly 'Xceed.Wpf.AvalonDock.Themes.Metro, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
FileNotFoundException: Could not load file or assembly 'Xceed.Wpf.AvalonDock.Themes.Metro, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.

I need to fix this so I can get my desired UI for my application, could anyone give me some suggestions ?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

✅ How to use ResourceDictionary in the App.xaml?
C#CC# / help
8mo ago
✅ Can't use external font in resourcedictionary?
C#CC# / help
3y ago
WPF Fonts in a ResourceDictionary
C#CC# / help
2y ago
❔ Combining multiple pdfs in .net5
C#CC# / help
4y ago