![]() ![]() The code snippet in Listing 31 creates a GeometryDrawing with a Line and two Rectnagle objects` and uses GeometryDrawing.Pen to draw the outline of the GeometryDrawing. First Pen is created using a SolidColorBrush and second Pen is created using a LinearGradientBrush. The code listed in Listing 30 creates two Pen elements. The Brush property represents the brush that is used to draw an outline and Thickness property represents the thickness of the outline.Ī Pen can be created by any kind of brushes discussed above and once a Brush is set for a pen, that brush is used to draw the outlines of a shape. The Brush and Thickness are only two required attributes you need to set to create a pen. The Pen element in XAML is used to create a pen at design-time. While a brush is used to fill shapes with colors, a pen is used to draw outlines of a shape. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |