Back to Devexpress

PopupBaseEdit.IsPopupOpen Property

windowsforms-devexpress-dot-xtraeditors-dot-popupbaseedit-f89d3953.md

latest3.7 KB
Original Source

PopupBaseEdit.IsPopupOpen Property

Gets a value indicating whether the popup window is open.

Namespace : DevExpress.XtraEditors

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[Browsable(false)]
public virtual bool IsPopupOpen { get; }
vb
<Browsable(False)>
Public Overridable ReadOnly Property IsPopupOpen As Boolean

Property Value

TypeDescription
Boolean

true if the popup window is open; otherwise, false.

|

Remarks

Read the IsPopupOpen property value to determine whether the editor’s popup window is open. Note: this property is also used internally by the editors. For example, editors do not raise validation when pressing the ENTER key while the popup window is open.

The following code snippets (auto-collected from DevExpress Examples) contain references to the IsPopupOpen property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winforms-gridlookupedit-multiple-item-selection/CS/Form1.cs#L41

csharp
PopupContainerEdit edit = sender as PopupContainerEdit;
if(!edit.IsPopupOpen)
    edit.ShowPopup();

how-to-implement-a-custom-inplace-editor-for-appointments-e4826/CS/SchedulerInplaceEditorExample/MyInplaceEditor.cs#L64

csharp
public void AppointmentLabelEdit_KeyDown(object sender, KeyEventArgs e) {
    if (!appointmentLabelEdit1.IsPopupOpen)
        Editor_KeyDown(sender, e);

winforms-gridlookupedit-multiple-item-selection/VB/Form1.vb#L36

vb
Dim edit As PopupContainerEdit = TryCast(sender, PopupContainerEdit)
If Not edit.IsPopupOpen Then edit.ShowPopup()
UpdateSelection(edit, popupGridView2)

how-to-implement-a-custom-inplace-editor-for-appointments-e4826/VB/SchedulerInplaceEditorExample/MyInplaceEditor.vb#L63

vb
Public Sub AppointmentLabelEdit_KeyDown(ByVal sender As Object, ByVal e As KeyEventArgs)
    If Not appointmentLabelEdit1.IsPopupOpen Then
        Editor_KeyDown(sender, e)

See Also

EditorContainsFocus

PopupBaseEdit Class

PopupBaseEdit Members

DevExpress.XtraEditors Namespace