📜  WPF 确认消息框 - 无论代码示例

📅  最后修改于: 2022-03-11 14:56:24.930000             🧑  作者: Mango

代码示例1
MessageBoxResult messageBoxResult = System.Windows.MessageBox.Show("Are you sure?", "Delete Confirmation", System.Windows.MessageBoxButton.YesNo);
        if (messageBoxResult == MessageBoxResult.Yes)
 //...........