Draw shapes UWP app developer Microsoft Docs. Learn how to draw shapes such as ellipses rectangles polygons and paths The Path class is the way to visualize a fairly complex vector-based drawing language in a XAML UI for example you can draw Bezier curves On the other hand a Rectangle is probably a better choice for control composition