Add IsDefault and IsCancel for all dialog buttons

This commit is contained in:
Alexey Golub 2018-01-13 18:15:42 +02:00
parent 1f36fb608a
commit bb2b04d2e5
4 changed files with 8 additions and 1 deletions

View file

@ -19,6 +19,8 @@ UserControl "DiscordChatExporter.Gui.Views.ErrorDialog" {
Command: DialogHost.CloseDialogCommand
Content: "OK"
HorizontalAlignment: Right
IsDefault: true
IsCancel: true
Style: resource dyn "MaterialDesignFlatButton"
}
}

View file

@ -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"
}
}

View file

@ -81,6 +81,7 @@ UserControl "DiscordChatExporter.Gui.Views.ExportSetupDialog" {
Margin: 8
Command: DialogHost.CloseDialogCommand
Content: "CANCEL"
IsCancel: true
Style: resource dyn "MaterialDesignFlatButton"
}
}

View file

@ -27,6 +27,8 @@ UserControl "DiscordChatExporter.Gui.Views.SettingsDialog" {
Command: DialogHost.CloseDialogCommand
Content: "SAVE"
HorizontalAlignment: Right
IsDefault: true
IsCancel: true
Style: resource dyn "MaterialDesignFlatButton"
}
}