开发者

Animation in WPF query

开发者 https://www.devze.com 2023-01-09 15:15 出处:网络
I\'m playing with WPF for the first time in an animation/graphics context, and I am wondering how you\'d move sp开发者_如何学JAVArites around. I googled and came up with this example, but the animatio

I'm playing with WPF for the first time in an animation/graphics context, and I am wondering how you'd move sp开发者_如何学JAVArites around. I googled and came up with this example, but the animation is done by increasing/decreasing the margins and padding.

My question is, is this normal? I would have thought you'd do animation by changing the x and y co-ordinates of a sprite, not its padding.


Position and Margin are the same thing. Position is the distance to the edge of the screen, or the egde of the window. Margin is the same thing.

0

精彩评论

暂无评论...
验证码 换一张
取 消