Back to Devexpress

ClosePopupEventArgs.CloseMode Property

wpf-devexpress-dot-xpf-dot-editors-dot-closepopupeventargs.md

latest3.0 KB
Original Source

ClosePopupEventArgs.CloseMode Property

Gets a value indicating how the popup editor’s dropdown window has been closed.

Namespace : DevExpress.Xpf.Editors

Assembly : DevExpress.Xpf.Core.v25.2.dll

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public PopupCloseMode CloseMode { get; }
vb
Public ReadOnly Property CloseMode As PopupCloseMode

Property Value

TypeDescription
PopupCloseMode

One of the PopupCloseMode enumeration values.

|

Available values:

NameDescription
Normal

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

| | Cancel |

Specifies that the drop-down window was closed because an end-user pressed the ESC key or clicked the close button.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the CloseMode 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.

wpf-pivot-grid-implement-a-custom-filter-popup/CS/DXPivotGrid_CustomFilterPopup/CustomFilterEdit.cs#L50

csharp
PivotGridControl pivot = PivotField.Parent as PivotGridControl;
if (e.CloseMode == DevExpress.Xpf.Editors.PopupCloseMode.Cancel || PivotField == null || SelectedItems == null || pivot == null)
    return;

wpf-pivot-grid-implement-a-custom-filter-popup/VB/DXPivotGrid_CustomFilterPopup/CustomFilterEdit.vb#L59

vb
Dim pivot As PivotGridControl = TryCast(PivotField.Parent, PivotGridControl)
If e.CloseMode = DevExpress.Xpf.Editors.PopupCloseMode.Cancel OrElse PivotField Is Nothing OrElse SelectedItems Is Nothing OrElse pivot Is Nothing Then
    Return

See Also

ClosePopupEventArgs Class

ClosePopupEventArgs Members

DevExpress.Xpf.Editors Namespace