如何在 MessageBox 上显示 3 个按钮?
我想在 MessageBox 上显示 3 个按钮。我找到了 Guide.BeginShowMessageBox 方法,但它不适用于 3 个按钮。这是我的代码:
Guide.BeginShowMessageBox("Info", "This is a test messsage.",
new List<string> { "OK", "Retry", "Cancel" }, 0, MessageBoxIcon.Warning,
asyncResult =>
{
int? returned = Guide.EndShowMessageBox(asyncResult);
Debug.WriteLine(returned.ToString());
}, null);
谢谢, 拉奇
I would like to show 3 buttons on a MessageBox. I found the Guide.BeginShowMessageBox method, but it isn't working with 3 buttons. Here is my code:
Guide.BeginShowMessageBox("Info", "This is a test messsage.",
new List<string> { "OK", "Retry", "Cancel" }, 0, MessageBoxIcon.Warning,
asyncResult =>
{
int? returned = Guide.EndShowMessageBox(asyncResult);
Debug.WriteLine(returned.ToString());
}, null);
Thanks,
Laci
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
来自 MSDN:
您使用的是 Windows Phone 吗?
From MSDN:
Are you on Windows Phone?