开发者

Animation in WPF query

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜