private void bTestMessageBoxQuestion_Click(object sender, RoutedEventArgs e) { WPFMessageBoxResult result = WPFMessageBox.ShowQuestion((sender as Button).Content.ToString(), "测试"); WPFMessageBox.ShowInfo((result == WPFMessageBoxResult.Yes ? "Yes" : result == WPFMessageBoxResult.No ? "NO" : "Cancel"), "结果"); }