Wpf merged resource dictionary no being recognized from app.xaml

前端 未结 3 1789
暗喜
暗喜 2020-12-23 21:49

I have a WPF .net 4.5 application where I am having trouble merging resource dictionaries.

I have the exact same problem as This SO question and This Question but th

3条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-23 22:47

    I hava a big problem with MergedDictionaries and I believe that your problem is the same. I want my ResourceDictionaries to be properly organized, which means for me that there are for example seperate Buttons.xaml, TextBoxes.xaml, Colors.xaml and so on. I merge them in Theme.xaml, often all the Styles are in a seperate assembly (so that I could easily switch Themes). My ApplicationResources are as follows: