Skip to main content
added 38 characters in body
Source Link
Paul Hoenecke
  • 5.1k
  • 1
  • 22
  • 20

You need to merge it into App.xaml like this:

<Application.Resources> <ResourceDictionary> <ResourceDictionary.MergedDictionaries> <ResourceDictionary Source="Generic.xaml"/> </ResourceDictionary.MergedDictionaries> </ResourceDictionary> </Application.Resources> 

If you are already doing that, you need to post your code to give more info.

EDIT: Did you set upTry following the AssemblyInfoinstructions here.cs Particularly, the parts about having to findset your dictionaries to Resource and using the Themes?full path in Source.

[assembly: ThemeInfo(ResourceDictionaryLocation.SourceAssembly, ResourceDictionaryLocation.SourceAssembly)] 

You need to merge it into App.xaml like this:

<Application.Resources> <ResourceDictionary> <ResourceDictionary.MergedDictionaries> <ResourceDictionary Source="Generic.xaml"/> </ResourceDictionary.MergedDictionaries> </ResourceDictionary> </Application.Resources> 

If you are already doing that, you need to post your code to give more info.

EDIT: Did you set up the AssemblyInfo.cs to find the Themes?

[assembly: ThemeInfo(ResourceDictionaryLocation.SourceAssembly, ResourceDictionaryLocation.SourceAssembly)] 

You need to merge it into App.xaml like this:

<Application.Resources> <ResourceDictionary> <ResourceDictionary.MergedDictionaries> <ResourceDictionary Source="Generic.xaml"/> </ResourceDictionary.MergedDictionaries> </ResourceDictionary> </Application.Resources> 

If you are already doing that, you need to post your code to give more info.

EDIT: Try following the instructions here. Particularly, the parts about having to set your dictionaries to Resource and using the full path in Source.

added 194 characters in body
Source Link
Paul Hoenecke
  • 5.1k
  • 1
  • 22
  • 20

You need to merge it into App.xaml like this:

<Application.Resources> <ResourceDictionary> <ResourceDictionary.MergedDictionaries> <ResourceDictionary Source="Generic.xaml"/> </ResourceDictionary.MergedDictionaries> </ResourceDictionary> </Application.Resources> 

If you are already doing that, you need to post your code to give more info.

EDIT: Did you set up the AssemblyInfo.cs to find the Themes?

[assembly: ThemeInfo(ResourceDictionaryLocation.SourceAssembly, ResourceDictionaryLocation.SourceAssembly)] 

You need to merge it into App.xaml like this:

<Application.Resources> <ResourceDictionary> <ResourceDictionary.MergedDictionaries> <ResourceDictionary Source="Generic.xaml"/> </ResourceDictionary.MergedDictionaries> </ResourceDictionary> </Application.Resources> 

If you are already doing that, you need to post your code to give more info.

You need to merge it into App.xaml like this:

<Application.Resources> <ResourceDictionary> <ResourceDictionary.MergedDictionaries> <ResourceDictionary Source="Generic.xaml"/> </ResourceDictionary.MergedDictionaries> </ResourceDictionary> </Application.Resources> 

If you are already doing that, you need to post your code to give more info.

EDIT: Did you set up the AssemblyInfo.cs to find the Themes?

[assembly: ThemeInfo(ResourceDictionaryLocation.SourceAssembly, ResourceDictionaryLocation.SourceAssembly)] 
Source Link
Paul Hoenecke
  • 5.1k
  • 1
  • 22
  • 20

You need to merge it into App.xaml like this:

<Application.Resources> <ResourceDictionary> <ResourceDictionary.MergedDictionaries> <ResourceDictionary Source="Generic.xaml"/> </ResourceDictionary.MergedDictionaries> </ResourceDictionary> </Application.Resources> 

If you are already doing that, you need to post your code to give more info.