Skip to content

Unable to change the MessageDialog highlighted button #2752

@DavidIQ

Description

@DavidIQ

What steps will reproduce this issue?

Set DefaultButtonFocus to something other than the Affirmative button for MessageDialogSettings and call the MetroWindow's ShowMessageAsync.

Expected outcome

Highlighted button is set to the default button. Why? Because users are under the impression that the highlighted button is what will be selected when they hit the Enter key. This does not seem to be something that can be overridden though:
https://github.com/MahApps/MahApps.Metro/blob/develop/src/MahApps.Metro/MahApps.Metro/Themes/Dialogs/MessageDialog.xaml#L35
Other than making the Affirmative button look like the others there doesn't appear that I can do much of anything else to the style to highlight the actual default button.

--

Environment

  • MahApps.Metro v1.3.0
  • Windows 10
  • Visual Studio 2015
  • .NET Framework 4.5.2

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions