List<NotifyMsg> arraymsg = new List<NotifyMsg>();
List<NotifyInfo> ArrayNotifyInfo = new List<NotifyInfo>()
{
new NotifyInfo(){title="[收信宝]开通失败",content="您的[收信宝]服务未能开通,请重试或联系客服确认订单。{失败原因:失败原因,新快捷支付:支付失败,请重新支付,或联系客服确认订单.}"},
new NotifyInfo(){title="独白通过审核",content="您的独白已经通过审核,赶快行动吧。"},
new NotifyInfo(){title="照片未通过审核",content="您好,请上传本人的清楚照片!"},
new NotifyInfo(){title="[收信宝]开通失败",content="您的[收信宝]服务未能开通,请重试或联系客服确认订单。{失败原因:失败原因,新快捷支付:支付失败,请重新支付,或联系客服确认订单.}"},
new NotifyInfo(){title="独白通过审核",content="您的独白已经通过审核,赶快行动吧。"},
new NotifyInfo(){title="照片未通过审核",content="您好,请上传本人的清楚照片!"},
new NotifyInfo(){title="独白通过审核",content="您的独白已经通过审核,赶快行动吧。"}
};
foreach (var info in ArrayNotifyInfo)
{
NotifyMsg ninfo = new NotifyMsg();
ninfo.content = info.content;
ninfo.title = info.title;
arraymsg.Add(ninfo);
}
this.Dispatcher.BeginInvoke(() =>
{
MultiMsgPrompt tp = new MultiMsgPrompt();
tp.Show(arraymsg);
});
//Map MyMap = new Map();
//MyMap.Center = new GeoCoordinate(39.978041, 116.43568);
//MyMap.ZoomLevel = 10;
//MyMap.Height = 800;
//MyMap.Width = 480;
//LayoutRoot.Children.Add(MyMap);
原文地址:http://www.cnblogs.com/luquanmingren/p/3950479.html