Back to Devexpress

RepositoryItemPopupBase.ShowDropDown Property

windowsforms-devexpress-dot-xtraeditors-dot-repository-dot-repositoryitempopupbase-748cdc7a.md

latest3.9 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(ShowDropDown.SingleClick)]
[DXCategory("Behavior")]
public virtual ShowDropDown ShowDropDown { get; set; }
vb
<DXCategory("Behavior")>
<DefaultValue(ShowDropDown.SingleClick)>
Public Overridable Property ShowDropDown As ShowDropDown

Property Value

TypeDefaultDescription
ShowDropDownSingleClick

A ShowDropDown enumeration value.

|

Available values:

NameDescription
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

TextEditStyle

CloseUpKey

ShowPopup()

ActionButtonIndex

RepositoryItemPopupBase Class

RepositoryItemPopupBase Members

DevExpress.XtraEditors.Repository Namespace