Gets or sets the width of the rectangle.
Assembly: WindowsBase (in WindowsBase.dll)
The following example shows how to use a Rect structure to specify the dimensions and location of a rectangle using XAML.
The following example shows how to use code to create a rectangle and add it to the page. The example also illustrates how to find size and coordinate information about the new rectangle and render the information in a TextBox below the rectangle.
Available since 3.0
Available since 2.0
Windows Phone Silverlight
Available since 7.0