Skip to content

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