Gets or sets the padding inside a control.
Syntax
| Visual Basic (Declaration) | |
|---|
Public Property Padding As System.Windows.Thickness |
| C# | |
|---|
public System.Windows.Thickness Padding {get; set;} |
Property Value
The amount of space between the content of a
System.Windows.Controls.Control and its
System.Windows.FrameworkElement.Margin or
System.Windows.Controls.Border. The default is a thickness of 0 on all four sides.
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also