Search This Blog

Thursday, December 15, 2011

Silverlight two lines in a button; Silverlight two polylines in a button; Silverlight draw shapes inside a button

To draw shapes inside a button use Polyline. You use Fill property to set filled shapes color and Stroke to set line’s color. StrokeThickness sets line’s thickness. Points are just X,Y coordinates.

        <Polyline Stroke="Red" StrokeThickness="2" Points="0,0 8,8" />
        <Polyline Stroke="Red" StrokeThickness="2" Points="0,8 8,0" />


No comments:

Post a Comment

If you like this post, please leave a comment :)