Override Standard Theme in App.xaml

后端 未结 2 2117
难免孤独
难免孤独 2021-02-15 22:11

I am using the standard WPF theme Aero.NormalColor.xaml. And it works very well. However for the whole application, I would like to override the Foreground colo

2条回答
  •  自闭症患者
    2021-02-15 22:39

    I think you can add the Style to a ResourceDictionary and merging that with the Aero theme like this:

    
      
        
          
          
    
          
          
            
          
    
        
      
    
    

    This should give ALL your textboxes red foreground color without having to explicitly specify that on each window and user control.

提交回复
热议问题