Esempio n. 1
0
        protected override void OnManipulationDelta(ManipulationDeltaRoutedEventArgs args)
        {
            manipulationManager.AccumulateDelta(args.Position, args.Delta);
            matrixXform.Matrix = manipulationManager.Matrix;
            // Make this the entire transform to date
            //matrixXform.Matrix = xformGroup.Value;

            // Use that to transform the Position property
            //Point center = matrixXform.TransformPoint(args.Position);

            // That becomes the center of the new incremental transform
            //compositeXform.CenterX = center.X;
            //compositeXform.CenterY = center.Y;

            // Set the other properties
            //compositeXform.TranslateX = args.Delta.Translation.X;
            //compositeXform.TranslateY = args.Delta.Translation.Y;
            //compositeXform.ScaleX = args.Delta.Scale;
            //compositeXform.ScaleY = args.Delta.Scale;
            //compositeXform.Rotation = args.Delta.Rotation;

            base.OnManipulationDelta(args);
        }
Esempio n. 2
0
 protected override void OnManipulationDelta(ManipulationDeltaRoutedEventArgs args)
 {
     manipulationManager.AccumulateDelta(args.Position, args.Delta);
     matrixXform.Matrix = manipulationManager.Matrix;
     base.OnManipulationDelta(args);
 }