WPF 和WinForm的MeeageBox不同
View Code
if(MessageBox.Show("内容", "标题", MessageBoxButton.YesNo, MessageBoxImage.Information) == MessageBoxResult.Yes)
{
}