Redefine/alias a resource in WPF?

前端 未结 3 1102
野趣味
野趣味 2020-12-06 04:42

Is there a way to redefine/alias an existing SolidColorBrush (or any other resource, actually)?

Case in point: I have a brush in an external ResourceDic

3条回答
  •  既然无缘
    2020-12-06 05:27

    
        
            Red
        
        
            
                
            
    
            
        
    
    

    I don't want to be dependent on the external reference, since the actual brush is prone to change in the future.

    You'll still be dependent on the external resource, just not in as many places.

提交回复
热议问题