Sub pnlDraw_Touch (Action As Int, X As Float, Y As Float)
lblX.Text = "X= " & X
lblY.Text = "Y= " & Y
Canvas1.DrawCircle(x, y, 10dip, Colors.Red, True, 10dip)
pnlDraw.Invalidate()
End Sub
But how can I perform an 'undo' action, to return to the prev state.
So basically I want to know how to delete/remove a part and how you can clean up the whole panel.
You can erase part of the canvas by drawing with Color.Transparent. This is different than performing an undo action as it will just erase the specified region.
Note that if you want to erase the whole canvas then your should use DrawRect.