Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

split app.xaml styles into files

I have on my app.xaml file many styles for my application . I want to split each style into a file, or doing another thing for readability . Now, it is impossible to go through the file, is to long. I need an advice for this. Is it ok to split the app file into multiple files ?

like image 455
Viva Avatar asked Oct 30 '13 15:10

Viva


1 Answers

put this in your app.xaml:

<Application.Resources>
  <ResourceDictionary>
    <ResourceDictionary.MergedDictionaries>
        <ResourceDictionary Source="YourStylesFile.xaml"/>
    </ResourceDictionary.MergedDictionaries>
  </ResourceDictionary>
</Application.Resources>
like image 147
NTinkicht Avatar answered Oct 19 '22 01:10

NTinkicht