Skip to main content
All docs

ConfirmationBehavior.EnableConfirmationMessage Property

Gets or sets whether a confirmation message should be displayed. This is a dependency property.

Namespace: DevExpress.Mvvm.UI

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

NuGet Package: DevExpress.Wpf.Core


public bool EnableConfirmationMessage { get; set; }

Property Value

Type Default Description
Boolean true

true if a confirmation message should be displayed; otherwise, false.


The following code specifies the Button’s command and enables a confirmation message for it. The message only appears if the ViewModel’s IsSaved property is false:

<Button Content="Close">
        <dxmvvm:ConfirmationBehavior EnableConfirmationMessage="{Binding IsSaved, Converter={StaticResource BooleanNegationConverter}}" 
                                     Command="{Binding CloseCommand}" MessageText="The document has unsaved changes. Do you want to close the document?"/>

View Example

See Also