【发布时间】:2014-11-29 21:16:08
【问题描述】:
我想在 WinRT (Windows 8.1) 中绘制多个具有相同大小和笔画粗细的圆圈。如果我使用 Ellipse 元素并在所有元素上设置相同的值(无填充颜色),我会得到具有不同笔画粗细的圆圈。但它们都应该具有相同的笔画粗细。如何解决这个问题?
Ellipse 以编程方式创建,然后作为子元素添加到 Grid
Ellipse e = new Ellipse();
e.Stroke = new SolidColorBrush(Color.FromArgb(255, 255, 255, 255));
e.StrokeThickness = 1;
e.Width = 30;
e.Height = 30;
【问题讨论】:
-
发布您的 xaml 代码。
标签: xaml windows-runtime microsoft-metro rendering ellipse