Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

PopupBaseEdit.ClosePopupCommand Property

Closes the popup window, accepting the changes made.

Namespace: DevExpress.Xpf.Editors

Assembly: DevExpress.Xpf.Core.v24.2.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