MessageDialog md = new MessageDialog("消息内容", "标题");
md.Commands.Add(new UICommand("确定", cmd =>
{
//处理程序
}));
md.Commands.Add(new UICommand("放弃", cmd =>
{
//处理程序
}));
await md.ShowAsync();
时间: 2024-10-23 17:32:26
MessageDialog md = new MessageDialog("消息内容", "标题");
md.Commands.Add(new UICommand("确定", cmd =>
{
//处理程序
}));
md.Commands.Add(new UICommand("放弃", cmd =>
{
//处理程序
}));
await md.ShowAsync();