Skinning: Using a Color as StaticResource for another Color

后端 未结 4 2018
遇见更好的自我
遇见更好的自我 2020-12-03 00:17

I implemented skinning in my application. The application loads its Brushes.xaml resource dictionary which uses colors which reside in a skin-specific resource dictionary. S

4条回答
  •  旧时难觅i
    2020-12-03 01:05

    Why don't you just make Brushes.xaml skin-specific? Then you will have this:

    #C4AF8D
    
    
    
    

    Another point in favor of making brushes skin-specific is that there are situations where you would want to make the ToolBarButtonForegroundBrush a solid color brush in one skin and a gradient brush in another skin.

提交回复
热议问题