Skip to main content

RepositoryItemPopupBase.ShowDropDown Property

Gets or sets whether the popup window can be opened by clicking the edit box and whether a single or double click is required.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

[DefaultValue(ShowDropDown.SingleClick)]
[DXCategory("Behavior")]
public virtual ShowDropDown ShowDropDown { get; set; }

Property Value

Type Default Description
ShowDropDown SingleClick

A ShowDropDown enumeration value.

Available values:

Name Description
Never

Clicking within the text region does not activate the popup window. A popup window appears only when pressing the RepositoryItemPopupBase.CloseUpKey key or Alt + DownArrow key, or calling the editor’s PopupBaseEdit.ShowPopup method.

SingleClick

A popup window is activated when a user clicks within the text region of a control.

DoubleClick

A popup window is activated when a user double-clicks within the text region of a control.

Note: the value is in effect when the RepositoryItemButtonEdit.TextEditStyle property is set to TextEditStyles.Standard as well.

Remarks

If the ShowDropDown property value is ShowDropDown.Never, end-users cannot invoke the dropdown by clicking the edit box. This is also not allowed if ShowDropDown is set to ShowDropDown.SingleClick and the RepositoryItemButtonEdit.TextEditStyle value is TextEditStyles.Standard. In this case, single clicks are processed by the edit box to change the caret position and thus do not invoke the editor’s popup window. If the ShowDropDown property value is ShowDropDown.DoubleClick, double-clicking the edit box invokes the popup window, regardless of the RepositoryItemButtonEdit.TextEditStyle property value.

See Also