How to make an ellipse follow a curve on a canvas

后端 未结 2 1508
太阳男子
太阳男子 2021-01-15 04:53

I am having an issue trying to get an ellipse to properly follow a path on my canvas. I supposed the problem stems from the fact that my mini syntax defines movement between

2条回答
  •  醉梦人生
    2021-01-15 05:21

    You can't animate both Canvas.Top and Canvas.Left at the same time, but you can use two separate animations. Make the PathGeometry a resources so it can be shared:

    
        
            
        
            
                
                    
                        
                            
                                
                                
                            
                        
                    
                
            
        
    

提交回复
热议问题