C
C#4mo 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. I need to fix this so I can get my desired UI for my application, could anyone give me some suggestions ?
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server