Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets or sets the dimensions of a border area.

<object BorderThickness="uniform"/>
- or -
<object BorderThickness="leftright,topbottom"/>
- or -
<object BorderThickness="left,top,right,bottom"/>
value = object.BorderThickness
object.BorderThickness = value

Property Value

Type: Thickness

An object that defines the four measurements of the border area.

This property is read/write. The default is an empty object, which evaluates to all values as 0.

XAML Values

See Thickness.

Applies To

Border, TextBox, PasswordBox

Version Information

Silverlight 2