Back to Devexpress

PopupBaseEdit.ClosePopupCommand Property

wpf-devexpress-dot-xpf-dot-editors-dot-popupbaseedit-5888f821.md

latest2.0 KB
Original Source

PopupBaseEdit.ClosePopupCommand Property

Closes the popup window, accepting the changes made.

Namespace : DevExpress.Xpf.Editors

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

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public ICommand ClosePopupCommand { get; }
vb
Public ReadOnly Property ClosePopupCommand As ICommand

Property Value

TypeDescription
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.

xaml
<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

PopupBaseEdit Class

PopupBaseEdit Members

DevExpress.Xpf.Editors Namespace