Brush to Brush Animation

后端 未结 3 1428
夕颜
夕颜 2020-12-09 08:30

I managed to find out how to make a WPF animation - transition between two colors.

It\'s called ColorAnimation and works well.

ColorAnimation animati         


        
3条回答
  •  無奈伤痛
    2020-12-09 09:24

    You can animate the color of the brush if you have a template style in which you give the fill brush a name, like so:

    
      
        
      
      
    
        
        
          
            
              
            
          
          
      
    
    

    As taken from MSDN

提交回复
热议问题