Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

PropertyDefinitionBase.Padding Property

Gets or sets the thickness of the padding space between the item’s borders and it’s contents. This is a dependency property.

Namespace: DevExpress.Xpf.PropertyGrid

Assembly: DevExpress.Xpf.PropertyGrid.v24.2.dll

NuGet Package: DevExpress.Wpf.PropertyGrid

#Declaration

public Thickness? Padding { get; set; }

#Property Value

Type Description
Nullable<Thickness>

A Thickness value that specifies the amount of space between the item’s borders and its contents.

#Remarks

Use the Padding property to specify the amount of padding to apply. You can specify the padding using a single numerical value, or using four distinct values separated by commas. To specify the padding for all properties in the property grid, use the PropertyGridControl.RowPadding property.

See Also