.NET Framework 4.6 and 4.5
Gets or sets the padding inside a control.
XMLNS for XAML:
member Padding : Thickness with get, set
< object >
< object.Padding >
< Thickness ... />
</ object.Padding >
</ object >
< object Padding = " Thickness " ... />
Padding is specified in the order Left, Top, Right, and Bottom. For more information, see
and Thickness . Alignment, Margins, and Padding Overview
This property only affects a control whose template uses the
property as a parameter. On other controls, this property has no impact. Padding
The following example shows how to set the padding property of a control.
< Button Name = " btn11 " Padding = " 5 "
Click = " ChangePadding " TabIndex = " 1 " >
</ Button >
No code example is currently available or this language may not be supported.
Supported in: 4.6, 4.5, 4, 3.5, 3.0
.NET Framework Client Profile
Supported in: 4, 3.5 SP1