Shake animation (3d version)

前端 未结 2 1818
情书的邮戳
情书的邮戳 2021-01-03 03:57

I want to use this animation on errors, like the one shown here:

How to achieve that in wpf? I have feeling this should be a combination (composition?) of m

2条回答
  •  佛祖请我去吃肉
    2021-01-03 04:22

    Here is the animation you describe. I have used a Viewport3D with a Viewport2DVisual3D to host the controls.

    You could use this to build you own reusable custom shake control.

    It is not possible to replicate this exact animation using simple 2D RenderTransforms.

    
        
            
                
            
            
                
                    
                        
                            
                        
                    
                
                
                    
                
                
                    
                        
                            
                        
                        
                
            
            
                
            
        
        
            
                
            
        
    
    

提交回复
热议问题