Please tell me how I can mainwindow.xaml all the style-ресурсы out of mainwindow.xaml into a separate file so that my eyes rejoice: D, otherwise it’s just hard to navigate in code when you have resources in the main file that occupy 50% of all code.

    1 answer 1

    The file App.xaml should contain the following code:

     <Application.Resources> <ResourceDictionary> <ResourceDictionary.MergedDictionaries> <ResourceDictionary Source="путь_к_файлу/имя_файла.xaml"/> </ResourceDictionary.MergedDictionaries> </ResourceDictionary> </Application.Resources>