protected override void OnMouseMove(UIMouseEventArgs e)
{
//test
//draw on this canvas
if (!e.IsDragging)
{
return;
}
this.lastX = e.X;
this.lastY = e.Y;
//temp fix here -> need converter
var p = this.Painter;
p.Clear(PixelFarm.Drawing.Color.White);
pointList.Add(new Point(lastX, lastY));
//clear and render again
int j = pointList.Count;
for (int i = 1; i < j; ++i)
{
var p0 = pointList[i - 1];
var p1 = pointList[i];
p.Line(
p0.X, p0.Y,
p1.X, p1.Y);
}
this.InvalidateCanvasContent();
}
protected override void OnMouseUp(UIMouseEventArgs e)