![]() ![]() MyPredefinedBrushRectangle.Fill = Brushes.Blue Rectangle myPredefinedBrushRectangle = new Rectangle() In the following example uses the predefined brush Blue to paint a rectangle blue. The following examples uses each of these techniques to paint a Rectangle blue. In XAML, you may also paint an area with a solid color by using hexidecimal notation. To paint an area with a solid color, you can use a predefined system brush, such as Red or Blue, or you can create a new SolidColorBrush and describe its Color using alpha, red, green, and blue values. ![]()
0 Comments
Leave a Reply. |