Property BorderStyle
BorderStyle
Gets or sets the LineStyle used to draw a one-row/column-thick border around the view.
public LineStyle? BorderStyle { get; set; }
Property Value
Remarks
This is a convenience helper for manipulating Border. Setting this property to any value
other than None sets Border.Thickness
to 1 (if currently zero) and Border.LineStyle to the value.
Setting this property to None (or null) sets
Border.Thickness to 0.
Raises OnBorderStyleChanged() and BorderStyleChanged.
For tab-style headers, gradient borders, or per-side thickness, configure Border directly.
// Single-line border: ┌┤Title├──┐
view.BorderStyle = LineStyle.Single;
// Rounded border: ╭┤Title├──╮
view.BorderStyle = LineStyle.Rounded;
// Double-line border: ╔═Title═══╗
view.BorderStyle = LineStyle.Double;
// Remove border:
view.BorderStyle = LineStyle.None;