Windows 8通知类型 [英] Windows 8 Notification Types

查看:79
本文介绍了Windows 8通知类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道这里是否有人知道Windows 8中的通知系统类型会在您的屏幕上放置一个大栏,您必须解雇...不是出现的Toast通知然后在几秒钟。这是可能的,还是仅限系统消息,如低电量?我找不到任何这样的样本 - 除非它的名字与我想象的不同。

解决方案

我想你是什么正在寻找的是:



public async void ShowAlert()

{

var t = new Windows.UI.Popups.MessageDialog(这是一个警报。);

等待t.ShowAsync();

}



您可以在此处找到有关MessageDialog类的更多详细信息:



http://msdn.microsoft.com/en-us/library/windows/apps/windows.ui.popups.messagedialog.aspx [ ^ ]


http:// www.codeproject.com/script/Answers/L ist.aspx?tab = unanswered [ ^ ]

http://blogs.msdn.com/b/jimoneil/archive/2012/08/02/windows-8-notifications-overview.aspx [ ^ ]

http://code.msdn.microsoft.com/windowsapps/Toast-notifications-sample- 52eeba29 [ ^ ]

I''m wondering if anybody here is aware of the type of notification system in windows 8 that puts a big bar across your screen that you have to dismiss... Not the toast notifications that appear and then go away after a few seconds. Is this possible, or is it reserved for system only messages, like low battery? I can''t find any samples of such a thing - unless it''s named something different than what I could think of.

解决方案

I think what you''re looking for is this:

public async void ShowAlert()
{
var t = new Windows.UI.Popups.MessageDialog("This is an alert.");
await t.ShowAsync();
}

You can find more details on the MessageDialog class here:

http://msdn.microsoft.com/en-us/library/windows/apps/windows.ui.popups.messagedialog.aspx[^]


http://www.codeproject.com/script/Answers/List.aspx?tab=unanswered[^]
http://blogs.msdn.com/b/jimoneil/archive/2012/08/02/windows-8-notifications-overview.aspx[^]
http://code.msdn.microsoft.com/windowsapps/Toast-notifications-sample-52eeba29[^]


这篇关于Windows 8通知类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆