Browse Source

Change pointers page to use new ellipse drawing APIs.

Dariusz Komosinski 4 years ago
parent
commit
80041d8f30
1 changed files with 2 additions and 3 deletions
  1. 2 3
      samples/ControlCatalog/Pages/PointersPage.cs

+ 2 - 3
samples/ControlCatalog/Pages/PointersPage.cs

@@ -99,10 +99,9 @@ namespace ControlCatalog.Pages
             foreach (var pt in _pointers.Values)
             {
                 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);
             }
-            
         }
     }
 }