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

ContextItemCollectionOptions.TopPanelPadding Property

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

Namespace: DevExpress.Utils

Assembly: DevExpress.Utils.v24.2.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