1

使用. MetroContentControl_MahApps.Metro

'System.Windows.Media.Animation.DoubleAnimationUsingKeyFrames' animation object cannot be used to animate property 'RenderTransform' because it is of incompatible type 'System.Windows.Media.Transform'.

我的视图未在设计模式下呈现。但在 Build 上效果很好。

谁能建议我,这个例外的可能解决方案是什么。

4

1 回答 1

2

似乎您不能仅仅因为RenderTransform不是 type而使用双重动画double。改为查看PropertyAnimation并为其提供一个新的整个Transform对象。

于 2012-11-22T20:55:57.290 回答