Gets or sets the padding inside a control.
Assembly: System.Windows (in System.Windows.dll)
<control Padding="uniform"/> - or - <control Padding="left&right,top&bottom"/> - or - <control Padding="left,top,right,bottom"/>
In the XAML syntaxes shown above, you can also use a space rather than a comma as the delimiter between values.
See Remarks for additional notes about value constraints.
Dependency property identifier field: PaddingProperty
Negative values for Thickness values are technically permitted, but should be used with caution when setting the property. Negative values will draw the content outside the bounds of the control surface, but could be used in this way for deliberate effect.
Non-integral values of a Thickness for are technically permitted, but should generally be avoided. Non-integral values will introduce subpixel rendering, which can possibly result in antialiasing artifacts.
This property only affects a control whose template uses the property as a parameter. On other controls, this property has no impact.
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.