Skip to main content
All docs
V25.1
  • ContextItemCollectionOptions.NearPanelPadding Property

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

    Namespace: DevExpress.Utils

    Assembly: DevExpress.Utils.v25.1.dll

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

    Declaration

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

    Property Value

    Type Description
    Padding

    Near panel padding.

    Property Paths

    You can access this nested property as listed below:

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

    Remarks

    The code below demonstrates how to increase NearPanelPadding to the left and to the right of the RatingContextButton.

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

    The image below demonstrates the result.

    BottomPanelPadding

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

    PropertiesNearPanelPadding

    See Also