共用方式為


Padding

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

Gets or sets the padding inside a container.

<object Padding="uniform"/>
- or -
<object Padding="left&Right,top&Bottom"/>
- or -
<object Padding="left,top,right,bottom"/>
value = object.Padding
object.Padding = value

Property Value

Type: Thickness

An object that defines the four measurements of the padding.

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

XAML Values

See Thickness.

Version Information

Silverlight 2