From bb2b04d2e5e21f75b402a5288a32bbec09c2bfc2 Mon Sep 17 00:00:00 2001 From: Alexey Golub Date: Sat, 13 Jan 2018 18:15:42 +0200 Subject: [PATCH] Add IsDefault and IsCancel for all dialog buttons --- DiscordChatExporter.Gui/Views/ErrorDialog.ammy | 2 ++ DiscordChatExporter.Gui/Views/ExportDoneDialog.ammy | 4 +++- DiscordChatExporter.Gui/Views/ExportSetupDialog.ammy | 1 + DiscordChatExporter.Gui/Views/SettingsDialog.ammy | 2 ++ 4 files changed, 8 insertions(+), 1 deletion(-) diff --git a/DiscordChatExporter.Gui/Views/ErrorDialog.ammy b/DiscordChatExporter.Gui/Views/ErrorDialog.ammy index 48dddbd..526c954 100644 --- a/DiscordChatExporter.Gui/Views/ErrorDialog.ammy +++ b/DiscordChatExporter.Gui/Views/ErrorDialog.ammy @@ -19,6 +19,8 @@ UserControl "DiscordChatExporter.Gui.Views.ErrorDialog" { Command: DialogHost.CloseDialogCommand Content: "OK" HorizontalAlignment: Right + IsDefault: true + IsCancel: true Style: resource dyn "MaterialDesignFlatButton" } } diff --git a/DiscordChatExporter.Gui/Views/ExportDoneDialog.ammy b/DiscordChatExporter.Gui/Views/ExportDoneDialog.ammy index 0bdb705..3715634 100644 --- a/DiscordChatExporter.Gui/Views/ExportDoneDialog.ammy +++ b/DiscordChatExporter.Gui/Views/ExportDoneDialog.ammy @@ -22,7 +22,8 @@ UserControl "DiscordChatExporter.Gui.Views.ExportDoneDialog" { Margin: 8 Click: OpenButton_Click Command: bind OpenCommand - Content: "OPEN IT" + Content: "OPEN" + IsDefault: true Style: resource dyn "MaterialDesignFlatButton" } @@ -31,6 +32,7 @@ UserControl "DiscordChatExporter.Gui.Views.ExportDoneDialog" { Margin: 8 Command: DialogHost.CloseDialogCommand Content: "DISMISS" + IsCancel: true Style: resource dyn "MaterialDesignFlatButton" } } diff --git a/DiscordChatExporter.Gui/Views/ExportSetupDialog.ammy b/DiscordChatExporter.Gui/Views/ExportSetupDialog.ammy index b1b4d88..1a93328 100644 --- a/DiscordChatExporter.Gui/Views/ExportSetupDialog.ammy +++ b/DiscordChatExporter.Gui/Views/ExportSetupDialog.ammy @@ -81,6 +81,7 @@ UserControl "DiscordChatExporter.Gui.Views.ExportSetupDialog" { Margin: 8 Command: DialogHost.CloseDialogCommand Content: "CANCEL" + IsCancel: true Style: resource dyn "MaterialDesignFlatButton" } } diff --git a/DiscordChatExporter.Gui/Views/SettingsDialog.ammy b/DiscordChatExporter.Gui/Views/SettingsDialog.ammy index 5c8d68d..7561a5d 100644 --- a/DiscordChatExporter.Gui/Views/SettingsDialog.ammy +++ b/DiscordChatExporter.Gui/Views/SettingsDialog.ammy @@ -27,6 +27,8 @@ UserControl "DiscordChatExporter.Gui.Views.SettingsDialog" { Command: DialogHost.CloseDialogCommand Content: "SAVE" HorizontalAlignment: Right + IsDefault: true + IsCancel: true Style: resource dyn "MaterialDesignFlatButton" } }