阅读背景:

在WPF中滑动面板的最佳方法是什么?

来源:互联网 

I have a fairly simple UserControl that I have made (pardon my Xaml I am just learning WPF) and I want to slide the off the screen. To do so I am animating a translate transform (I also tried making the Panel the child of a canvas and animating the X position with the same results), but the panel moves very jerkily, even on a fairly fast new computer. What is the best way to slide in and out (preferably with KeySplines so that it moves with inertia) without getting the jerkyness. I only have 8 buttons on the panel, so I didn't think it would be too much of a problem. I have a fairly simple UserControl that I have




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: