Search code examples
c#wpfresourcedictionary

No ThemeDictionaries for ResourceDictionary in WPF project


No ThemeDictionaries in ResourceDictionary. It is a normal WPF project. Wondering what is necessary to enable ThemeDictionaries. Do I have to import any library? I'm using Visual Studio 2017. The project was created from New Project -> Visual C# -> WPF App(.Net Framework).

picture


Solution

  • The ThemeDictionaries property is specific to UWP.

    There is no such property available in WPF. You could create different themes yourself by simply defining several ResourceDictionaries that contain the same keys.