Class MessageDialogViewModel
View model for message dialogs shown by navigators. The default message dialog can be overridden by mapping a custom dialog to this view model type when building an INavigator.
Implements
Namespace: Singulink.UI.Navigation
Assembly: Singulink.UI.Navigation.dll
Syntax
public sealed class MessageDialogViewModel : IDismissableDialogViewModel
Properties
Name | Description |
---|---|
ButtonLabels | Gets the labels for the buttons displayed in the dialog. |
CancelButtonIndex | Gets the index of the button that should be clicked when the user presses the Escape key. |
DefaultButtonIndex | Gets the index of the button that is focused by default so it is clicked when the user presses the Enter or Space key. This button gets an accent style applied to it. |
Message | Gets the message of the dialog. |
ResultButtonIndex | Gets the index of the button that was clicked to close the dialog. |
Title | Gets the title of the dialog. |
Methods
Name | Description |
---|---|
OnButtonClick(int) | Should be called when a button is clicked in the message dialog to set ResultButtonIndex and close the dialog. |
Explicit Interface Implementations
Name | Description |
---|---|
IDismissableDialogViewModel.OnDismissRequested() | Invoked when the escape key is pressed or a user-initiated back navigation is triggered while the dialog is showing. |