Although this example used a xref:System.Windows.Shapes.Path element to render the xref:System.Windows.Media.RectangleGeometry, there are many other ways to use xref ...
This example shows how to create and render a RectangleGeometry object. The position and dimensions of the rectangle are defined by a Rect property value, provided as an attribute. The position is (50 ...