Example #1
0
        private void Manipulation(ManipulationDeltaEventArgs e)
        {
            var mt         = new MatrixTransform(ShapeUtils.GetTransform(e));
            var newTopLeft = mt.Transform(getBadgePos());

            setBadgePos(newTopLeft.X, newTopLeft.Y);
        }
Example #2
0
        void Manipulation(ManipulationDeltaEventArgs e)
        {
            var mt = new MatrixTransform(ShapeUtils.GetTransform(e));

            var Point1 = mt.Transform(new Point(line.X1, line.Y1));
            var Point2 = mt.Transform(new Point(line.X2, line.Y2));

            line.X1 = Point1.X;
            line.Y1 = Point1.Y;
            line.X2 = Point2.X;
            line.Y2 = Point2.Y;
        }