Skip to main content

ContextItemCollectionOptions.TopPanelPadding Property

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

Namespace: DevExpress.Utils

Assembly: DevExpress.Utils.v24.1.dll

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

Declaration

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

Property Value

Type Description
Padding

Top panel padding.

Property Paths

You can access this nested property as listed below:

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

Remarks

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

using DevExpress.Utils;
// ...
pictureEdit1.Properties.ContextButtonOptions.TopPanelPadding = new Padding(0, 10, 0, 10);

The image below demonstrates the result.

TopPanelPadding

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

PropertiesTopPanelPadding

See Also