Beispiel #1
0
 protected override void OnDraw(IImageCanvas canvas)
 {
     //canvas.Translate(Allocation.Width/2f, Allocation.Height / 2f);
     canvas.DrawEllipse(
         new Rect(new Size(canvas.Size.Width - 1, canvas.Size.Height - 1)),
         pen: Pen,
         brush: Brush);
 }
Beispiel #2
0
 protected override void OnDraw(IImageCanvas canvas)
 {
     canvas.DrawEllipse(
         new Rect(0, 0, Width, Height),
         new Pen(
             Color.ToNGraphicColor(),
             StrokeThickness
             ));
 }