0

我写了一个应用程序(在 Windows 8 cr,vs2011 中),并在其中旋转了一个文本块。现在在同一应用程序中的 Windows 8 rc 和 vs 2012 中,旋转不起作用。

textblock.ManipulationMode = (lastTB.ManipulationMode & ~ManipulationModes.System) | ManipulationModes.Rotate | ManipulationModes.RotateInertia;
textblock.ManipulationDelta += lastTB_ManipulationDelta;

该事件不起作用。

有任何想法吗 ?

4

1 回答 1

0

这可能是因为在 Release Preview 中操作事件发生了一些变化。本文档详细介绍了 API 中的更改:将您的 Windows 8 Consumer Preview 应用程序迁移到 Windows 8 Release Preview

具体来说,事件现在使用度数而不是弧度。所以也许你可能不得不改变你的代码来反映这一点?

于 2012-06-13T11:25:55.933 回答