Skip to content

ConfirmActionDialogViewModel class

View model of a confirmation or notification dialog: an optional header, one or more message lines, an optional icon and the "Don't show again" check box. Show it with String) and read DisableConfirmDialog afterwards; persisting that choice is up to the application.

Namespace: Eremex.AvaloniaUI.Controls.ApplicationServices
Assembly: Eremex.Avalonia.Controls.ApplicationServices.dll
NuGet Package: Eremex.Avalonia.Controls.ApplicationServices

Declaration

public class ConfirmActionDialogViewModel : DialogAwareViewModel

Constructors

name description
ConfirmActionDialogViewModel(…) Initializes a new instance of the ConfirmActionDialogViewModel class.

Properties

name description
Buttons { get; set; } The set of buttons in the footer. Set it before the dialog is shown.
ChooseCommand { get; }
ContentView { get; set; }
DisableConfirmDialog { get; set; }
Header { get; set; }
Icon { get; set; }
Messages { get; set; }
ShowDisableConfirmOption { get; set; }

Methods

name description
Choose(…) Closes the dialog with the DialogResult passed as the command parameter.

See Also