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.
<Button>
<Grid>
<Polyline Stroke="Red" StrokeThickness="2" Points="0,0 8,8" />
<Polyline Stroke="Red" StrokeThickness="2" Points="0,8 8,0" />
</Grid>
</Button>
No comments:
Post a Comment
If you like this post, please leave a comment :)