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.
精彩评论