Skip to main content

PopupBaseEdit.ClosePopupCommand Property

Closes the popup window, accepting the changes made.

Namespace: DevExpress.Xpf.Editors

Assembly: DevExpress.Xpf.Core.v24.1.dll

NuGet Package: DevExpress.Wpf.Core

Declaration

public ICommand ClosePopupCommand { get; }

Property Value

Type Description
ICommand

An object that defines a command implementing the ICommand interface.

Remarks

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}}">  
    <Button.CommandParameter>  
        <dxe:PopupCloseMode>Normal</dxe:PopupCloseMode>  
    </Button.CommandParameter>  
</Button>  
See Also