wpf-devexpress-dot-xpf-dot-editors-dot-closepopupeventargs.md
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
public PopupCloseMode CloseMode { get; }
Public ReadOnly Property CloseMode As PopupCloseMode
| Type | Description |
|---|---|
| PopupCloseMode |
One of the PopupCloseMode enumeration values.
|
Available values:
| Name | Description |
|---|---|
| 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.
PivotGridControl pivot = PivotField.Parent as PivotGridControl;
if (e.CloseMode == DevExpress.Xpf.Editors.PopupCloseMode.Cancel || PivotField == null || SelectedItems == null || pivot == null)
return;
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