Back to Devexpress

PopupBaseEdit.PopupCloseMode Property

windowsforms-devexpress-dot-xtraeditors-dot-popupbaseedit-9df05b45.md

latest3.0 KB
Original Source

PopupBaseEdit.PopupCloseMode Property

Gets or sets the current PopupBaseEdit‘s closing behavior.

Namespace : DevExpress.XtraEditors

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[Browsable(false)]
[EditorBrowsable(EditorBrowsableState.Never)]
public virtual PopupCloseMode PopupCloseMode { get; set; }
vb
<Browsable(False)>
<EditorBrowsable(EditorBrowsableState.Never)>
Public Overridable Property PopupCloseMode As PopupCloseMode

Property Value

TypeDescription
PopupCloseMode

A PopupCloseMode enumerator value that specifies the current PopupBaseEdit‘s closing behavior.

|

Available values:

NameDescription
Normal

Specifies that the dropdown window was closed because an end-user selected an option from the editor’s dropdown.

| | Cancel |

Specifies that the dropdown window was closed because an end-user pressed the ESC key or clicked the close button (available for LookUpEdit, CalcEdit and PopupContainerEdit controls).

| | Immediate |

Specifies that the dropdown window was closed because an end-user clicked outside the editor.

| | ButtonClick |

Specifies that the dropdown window was closed because an end-user clicked the editor’s dropdown button.

| | CloseUpKey |

Specifies that the dropdown window was closed because an end-user pressed a shortcut used to close the dropdown (the ALT+DOWN ARROW or RepositoryItemPopupBase.CloseUpKey).

|

Remarks

The PopupCloseMode property specifies in which case the current PopupBaseEdit-derived editor pop-up should close. Depending on the PopupCloseMode enumerator value, it can be closed via the drop-down button, ‘Cancel’ button, CloseUp key (see the RepositoryItemPopupBase.CloseUpKey property) or clicking anywhere outside the editor.

See Also

PopupBaseEdit Class

PopupBaseEdit Members

DevExpress.XtraEditors Namespace