且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Silverlight的绑定到TranslateX

更新时间:2023-10-06 08:59:28

的Windows Phone 7目前基于Silverlight的3运行时没有Silverlight 4的。

Windows Phone 7 is currently based on the Silverlight 3 runtime not Silverlight 4.

一个在Silverlight 3的限制是,你只能绑定到从 FrameworkElement的派生的元素。该转换类不从 FrameworkElement的得出,因此不能参与结合。

One of the limitations in Silverlight 3 is that you can only bind to an element that derives from FrameworkElement. The transform classes do not derive from FrameworkElement and hence cannot participate in binding.

相反,通过结合考虑使用故事板移动椭圆来代替动画变换。

Instead of moving the ellipse via binding consider using a Storyboard to animate the transform instead.