Skip to main content

PopupBaseEdit.ClosePopupCommand Property

Closes the popup window, accepting the changes made.

Namespace: DevExpress.Xpf.Editors

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

NuGet Package: DevExpress.Wpf.Core


public ICommand ClosePopupCommand { get; }

Property Value

Type Description

An object that defines a command implementing the ICommand interface.


The corresponding method: PopupBaseEdit.ClosePopup.

When using the ClosePopupCommand command, pass one of the PopupCloseMode enumeration values to the command as a parameter.

The code sample below demonstrates how to bind a button to the ClosePopupCommand command, when the button is placed in the PopupBaseEdit.PopupContentTemplate.

<Button Content="OK"  
        Command="{Binding Path=(dxe:BaseEdit.OwnerEdit).ClosePopupCommand, RelativeSource={RelativeSource TemplatedParent}}">  
See Also