-api-id | -api-type |
---|---|
T:Windows.UI.Xaml.Shapes.Ellipse |
winrt class |
Draws an ellipse with a given Height and Width specified in device-independent pixel (DIP).
<Ellipse .../>
You can set the Fill property to give the shape a background fill, like a solid color, gradient, or image. You can set the Stroke and other related stroke properties to specify the look of the shape's outline.
This example shows how to create an Ellipse in XAML and set some of its common properties as attribute values.
<StackPanel>
<Ellipse
Fill="Yellow"
Height="100"
Width="200"
StrokeThickness="2"
Stroke="Black"/>
</StackPanel>