コード例 #1
0
 protected void DrawRectangle(WindowRenderTarget device, Color color, float x, float y, float width, float height, float strokeWidth = 1f)
 {
     using (SolidColorBrush brush = new SolidColorBrush(device, color))
     {
         device.DrawRectangle(new RectangleF(x, y, width, height), brush, strokeWidth);
     }
 }