Example #1
0
        public override void TouchesEnded(NSSet touches, UIEvent evt)
        {
            base.TouchesEnded(touches, evt);

            var loc = (touches.AnyObject as UITouch).LocationInView(this);

            CurrentStroke.Points.Add(new Point(loc.X, loc.Y));
            CurrentPathView.AddLineTo(loc);

            Strokes.Add(CurrentStroke);
            drawPath();

            CurrentPathView.Clear();
            SetNeedsDisplay();
        }
Example #2
0
 public void Clear()
 {
     Strokes.Clear();
     CurrentPathView.Clear();
     drawPath();
 }