Skip to main content
All docs
V25.1
  • DevExpress v25.1 Update — Your Feedback Matters

    Our What's New in v25.1 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 Class

    Stores a ContextItemCollection‘s settings. Use the ContextItemCollection.Options property or the control’s repository item to access them.

    Namespace: DevExpress.Utils

    Assembly: DevExpress.Utils.v25.1.dll

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

    #Declaration

    public class ContextItemCollectionOptions :
        BaseOptions

    #Remarks

    You can get and manipulate options for a control’s ContextItemCollection in code. To access the ContextItemCollectionOptions object, use the control’s repository item. The code below demonstrates how to change TopPanelColor.

    using DevExpress.Utils;
    using System.Drawing;
    // ...
    pictureEdit1.Properties.ContextButtonOptions.TopPanelColor = Color.Black;
    

    The image below demonstrates the result.

    ContextItemCollection

    Alternatively, you can access ContextItemCollectionOptions in a control’s Properties window.

    ContextItemCollectionOptions

    See Also