Split app.xaml styles into files

I have many styles on my app.xaml file for my application. I want to split each style into a file or do one more thing for readability. Now it is impossible to go through the file for a long time. I need some advice for this. Can I split an application file into multiple files?

+7
c # resources styles wpf
source share
1 answer

put this in your app.xaml:

<Application.Resources> <ResourceDictionary> <ResourceDictionary.MergedDictionaries> <ResourceDictionary Source="YourStylesFile.xaml"/> </ResourceDictionary.MergedDictionaries> </ResourceDictionary> </Application.Resources> 
+6
source share

All Articles