Skip to main content

ContextItemCollectionOptions.CenterPanelPadding Property

Gets or sets Padding for context items inside the center panel.

Namespace: DevExpress.Utils

Assembly: DevExpress.Utils.v23.2.dll

NuGet Packages: DevExpress.Utils, DevExpress.Wpf.Core

Declaration

[XtraSerializableProperty]
public virtual Padding CenterPanelPadding { get; set; }

Property Value

Type Description
Padding

Center panel padding.

Property Paths

You can access this nested property as listed below:

Object Type Path to CenterPanelPadding
CameraControl
.ContextButtonOptions .CenterPanelPadding
CalendarControlBase
.ContextButtonOptions .CenterPanelPadding
ImageSlider
.ContextButtonOptions .CenterPanelPadding
RepositoryItemPictureEdit
.ContextButtonOptions .CenterPanelPadding
SvgImageBox
.ContextButtonOptions .CenterPanelPadding
TileControl
.ContextButtonOptions .CenterPanelPadding
TileView
.ContextButtonOptions .CenterPanelPadding

Remarks

The code below demonstrates how to increase CenterPanelPadding above and below the RatingContextButton.

using System.Windows.Forms;
// ...
pictureEdit1.Properties.ContextButtonOptions.CenterPanelPadding = new Padding(0, 10, 0, 10);

The image below demonstrates the result.

CenterPanelPadding

Alternatively, you can access CenterPanelPadding in the control’s Properties window.

PropertiesCenterPanelPadding

See Also