The value of LineJoin is type of PenLineJoin enumeration that has Miter, Bevel, and Round values. LineJoin property defines the type of joint used at the vertices of a shape's outline. The value can be flat, square, triangle and round. StartLineCap and EndLineCap define the type of shape to use at the beginning and end of a stroke. As you can see from Pen element, the thickness of Pen is 5. 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. Archives
June 2023
Categories |