2

コントロールの特定のイベントを使用して1本の指とジェスチャを処理Tappedし、イベントを使用して1本の指でスワイプするジェスチャを処理できます。DoubleTappedHoldingManipulationDeltaManipulationStarted

しかし、ピンチ、ズーム、回転のジェスチャを処理する方法がわかりません。誰かがそれを行う方法について詳しく説明できますか?

4

1 に答える 1

1

ManipulationDeltaイベントは、ManipulationModeプロパティが次のように設定されていると仮定してargs.Delta.Scale/Rotation値を提供します。

ManipulationMode =
    ManipulationModes.TranslateX |
    ManipulationModes.TranslateY |
    ManipulationModes.Rotate |
    ManipulationModes.Scale |
    ManipulationModes.TranslateInertia;

(またはそのようなもの)。

于 2012-10-23T15:19:13.160 に答える