1

I'm trying to perform a slide in/out animation on my windows phone project. The effect I'm trying to create is that a user presses a button, that a list of buttons ( a panel ) slides in from the side and the current page slides a bit off screen.

Look at a good example here ( the panel is fully slided in, so a small part of the active page is still visible )

Now I think the animations are not that difficult ( but any tips on how to create it are welcome ), but I was wondering how do you add the subtle shadow effect? If you look at the image you will notice that it's like the panel is underneath the active screen, because of the shadow...

4

1 に答える 1

0

アイデアがあるかもしれません。

-これを実行するティックごとに、タイマーを作成します。

int x = pnl.Location.X; int y = pnl.Location.Y; pnl.Location = new Point(x + 1, y);

if-次に、パネルが正しい位置にあるときにタイマーを停止するを作成する必要があります。次に例を示します。

if (x == 20) { tmrMove.Stop(); }

于 2016-09-12T09:35:19.450 に答える