Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ShowInputAsync Does not accept DefaultButtonFocus (version 1.4.3) #4358

Open
ccuciak opened this issue Oct 19, 2022 · 0 comments
Open

ShowInputAsync Does not accept DefaultButtonFocus (version 1.4.3) #4358

ccuciak opened this issue Oct 19, 2022 · 0 comments
Labels

Comments

@ccuciak
Copy link

ccuciak commented Oct 19, 2022

Describe the bug

Created a MetroDialogSettings, and by default the DefaultButton Focus is set to the MessageDialogResult.Negative. When the dialog is displayed the Ok button is highlighted and the default focus.

Steps to reproduce

  1. Create an async method
  2. Create MetroDialogSettings using defalt constructor, which set the negative button as the focus.
  3. Await of the DialogCoordinator.ShowInputAsync passing in the MetroDialogSettings created above.
  4. The Ok button is always highlighted and selected if a button is not selected.
  5. I have tried manually setting -> metroInputSettings.DefaultButtonFocus = MessageDialogResult.Negative

Expected behavior

The OK button should not be selected and defaulted.

Actual behavior

image

Environment

Windows 10, .NET Framework 4.7.2

MahApps.Metro version: v1.4.3
Windows build number: Win10 Version 21H2 (OS Build 19044.1645)
Visual Studio: 2017 15.9.13
Target Framework: .4.7.2

Screenshots

@ccuciak ccuciak added the Bug label Oct 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

1 participant