wp8 入门到精通 MultiMsgPrompt

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);

时间: 2024-08-28 05:30:31

wp8 入门到精通 MultiMsgPrompt的相关文章

wp8 入门到精通 测量代码执行时间

Stopwatch time = new Stopwatch(); byte[] target = new byte[size]; for (int j = 0; j < size; j++) target[j] = unchecked((byte)j); //Otherwise parts of the array are optimised out. CCMD5Core.GetHash(target); time.Start(); for (int i = 1; i <= iteratio

wp8 入门到精通 输入框

<Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0"> <TextBlock Text="Default" Height="30" HorizontalAlignment="Left" Margin="10,15,0,0" Name="textDefault" Ve

wp8 入门到精通 Utilities类 本地存储+异步

public class CCSetting { public async static void AddOrUpdateValue<T>(string key, T value) { try { if (key != null) { StorageFolder floder = ApplicationData.Current.LocalFolder; if (!(await floder.GetFoldersAsync()).Any(a => a.Name == "DrieS

wp8 入门到精通 高仿微信发信息 键盘不消失

<Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0"> <StackPanel Orientation="Vertical"> <TextBlock Text="Hides soft keyboard on enter:" /> <TextBox x:Name="textBox"

wp8 入门到精通 启动系统分享照片任务

PhotoChooserTask photoChooserTask = new PhotoChooserTask(); photoChooserTask.Completed += photoChooserTask_Completed; photoChooserTask.ShowCamera = true; photoChooserTask.Show(); void photoChooserTask_Completed(object sender, PhotoResult e) { if (e.T

wp8 入门到精通 ---转换

/// <summary>        /// 颜色字符串转Color        /// </summary>        public static Color ConvertFromString(string argb)        {            uint result;            if (uint.TryParse(argb.TrimStart('#', '0'), NumberStyles.HexNumber, null, out resu

wp8 入门到精通 ImageCompress 图片压缩

//实例化选择器 PhotoChooserTask photoChooserTask = new PhotoChooserTask(); BitmapImage bimg; int newPixelWidth; int newPixelHeight; //构造函数里 //从页面读取输入值作为目标分辨率 newPixelHeight = int.Parse(textBox2.Text.ToString()); //从页面读取输入值作为目标分辨率 newPixelHeight = int.Parse

wp8 入门到精通 Gallery

<Grid x:Name="LayoutRoot" Background="Transparent"> <Grid.Resources> <Style TargetType="Image"> <Setter Property="Margin" Value="-12,-36,0,0"/> </Style> </Grid.Resources>

wp8 入门到精通 定时更新瓷贴

public class ScheduledAgent : ScheduledTaskAgent { static ScheduledAgent() { Deployment.Current.Dispatcher.BeginInvoke(delegate { Application.Current.UnhandledException += UnhandledException; }); } private static void UnhandledException(object sender