On the one hand:
WPF is unable to resolve the resource dictionary that you are trying to merge. When you create a merged dictionary, WPF follows a set of rules to attempt to resolve the URI. In your case, the URI is ambiguous, so WPF is unable to reliably resolve it.
Change the Source URI in the ResourceDictionary to an absolute pack URI.
For example, if your project is called Common, then you could change the Source in GResourceDic.xaml to:
<ResourceDictionary Source="Common;component/ResourceDics/GResourceDic.xaml" />
See this page on MSDN for further details on Pack URIs in WPF.
On the other hand:
ResourceDictionary needs to be in Resources. You can delete the ResourceDictionary in Generic.xaml. Add the following code in UserControl(BarView:UserControl.Resources ) and Window(ActView: Window.Resources ) respectively.
< Window.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="Commen;component/ResourceDics/GResourceDic.xaml" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
< / Window.Resources>
----------------------------------------------------------------------------
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.