Load control style from separate file in wpf

后端 未结 5 1903
情深已故
情深已故 2021-02-13 00:18

I have the following style added to my Windows.Resources


...

 
    
      
        
      
    
     

  


  
     
  

From above Merged/BrushResources.xaml is the location of the resource file, which is located under the folder called Merged.

Now if you are wondering what should be the declaration syntax in the outer file, check this:



    
    
    
    
    


If you want to make the resource available through all application (visible in all your windows) then declare in the App.xaml resources section.

提交回复
热议问题