Back to Devexpress

RepositoryItemCheckedComboBoxEdit.ContextButtons Property

windowsforms-devexpress-dot-xtraeditors-dot-repository-dot-repositoryitemcheckedcomboboxedit-0ed4cbd3.md

latest3.3 KB
Original Source

RepositoryItemCheckedComboBoxEdit.ContextButtons Property

Provides access to the collection of context buttons displayed by editor items.

Namespace : DevExpress.XtraEditors.Repository

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[Browsable(true)]
[DXCategory("Context Buttons")]
public override ContextItemCollection ContextButtons { get; }
vb
<Browsable(True)>
<DXCategory("Context Buttons")>
Public Overrides ReadOnly Property ContextButtons As ContextItemCollection

Property Value

TypeDescription
ContextItemCollection

A ContextItemCollection object that represents the collection of context buttons.

|

Remarks

The ContextButtons property provides access to the collection of context buttons that are displayed by the CheckedComboBoxEdit‘s items. For details on context buttons, see the ContextItem base class.

At design time, you can manage the context button collection and specify button properties using the Collection Editor. To invoke this editor, click the ellipsis button of the ContextButtons property in the Properties window.

To respond to clicks on context buttons in a centralized way, handle the RepositoryItemPopupBase.ContextButtonClick event. The Item property of the ContextItemClickEventArgs object passed to the event handler as a parameter, allows you to determine the button being clicked.

The RepositoryItemCheckedComboBoxEdit.ContextButtonOptions property provides access to the settings applied to the context buttons. For instance, you can specify the indent between the buttons, the animation used to show and hide the buttons, etc.

See Also

ContextButtonOptions

ContextButtonClick

CustomizeContextItem

ContextButtonValueChanged

RepositoryItemCheckedComboBoxEdit Class

RepositoryItemCheckedComboBoxEdit Members

DevExpress.XtraEditors.Repository Namespace