How to extend instead of overriding WPF Styles

后端 未结 2 1375
长发绾君心
长发绾君心 2020-12-28 13:26

I want to use custom theme in my application and as far as I know I can accomplish this by using resource dictionary and referencing it in App.xaml. Styles would override th

2条回答
  •  独厮守ぢ
    2020-12-28 14:18

    I had the same problem. I used Zack's answer and improved it like following so if you don't specify a style the overridden default is still taken in account. It's basically what you would have done but just once in the ResourceDictionary.

    
      
        
          
          
          
          
        
      
      
        
        
    
    

提交回复
热议问题