Skinning: Using a Color as StaticResource for another Color

后端 未结 4 2010
遇见更好的自我
遇见更好的自我 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条回答
  •  庸人自扰
    2020-12-03 01:10

    That last part is not possible as a Color has no Color property.

    A Color does have an R, G, B and A property. So you could create four bytes as resources:

    
        #23
        #45
        #67
        #FF
    
        
    
        
    
    
    

    Still not what you might prefer but it should work.

提交回复
热议问题