Browse Source

Change pointers page to use new ellipse drawing APIs.

pull/7031/head
Dariusz Komosinski 5 years ago
parent
commit
80041d8f30
  1. 5
      samples/ControlCatalog/Pages/PointersPage.cs

5
samples/ControlCatalog/Pages/PointersPage.cs

@ -99,10 +99,9 @@ namespace ControlCatalog.Pages
foreach (var pt in _pointers.Values) foreach (var pt in _pointers.Values)
{ {
var brush = new ImmutableSolidColorBrush(pt.Color); var brush = new ImmutableSolidColorBrush(pt.Color);
context.DrawGeometry(brush, null, new EllipseGeometry(new Rect(pt.Point.X - 75, pt.Point.Y - 75,
150, 150))); context.DrawEllipse(brush, null, pt.Point, 75, 75);
} }
} }
} }
} }

Loading…
Cancel
Save