Skip to content

Bug Fixed: When MessageBoxButton set to YesNo Or YesNoCancel, There will be more one OK Button. #107

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

Merged
merged 1 commit into from
Aug 15, 2024

Conversation

SwaggyMacro
Copy link
Member

@SwaggyMacro SwaggyMacro commented Aug 15, 2024

As the title says.

var result = MessageBox.Show("确定删除该用户吗?", "提示", MessageBoxButton.YesNo, MessageBoxImage.Question, null, 5);
// or var result = MessageBox.Show("确定删除该用户吗?", "提示", MessageBoxButton.YesNoCancel, MessageBoxImage.Question, null, 5);
if (result != MessageBoxResult.Yes)
{
    return;
}

Then, You will get a MessgaeBox like this.
image
image

Set ok and cancel button Visibility will works.
image
image

@yanjinhuagood yanjinhuagood merged commit d7613a5 into WPFDevelopersOrg:dev Aug 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants