wpf-devexpress-dot-xpf-dot-editors-dot-popupbaseedit-5888f821.md
Closes the popup window, accepting the changes made.
Namespace : DevExpress.Xpf.Editors
Assembly : DevExpress.Xpf.Core.v25.2.dll
NuGet Package : DevExpress.Wpf.Core
public ICommand ClosePopupCommand { get; }
Public ReadOnly Property ClosePopupCommand As ICommand
| Type | Description |
|---|---|
| ICommand |
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}}">
<Button.CommandParameter>
<dxe:PopupCloseMode>Normal</dxe:PopupCloseMode>
</Button.CommandParameter>
</Button>
See Also