积极答复者
MessageBox怎么没了,另外怎样在win8程序里调用浏览器打开一个网页?

问题
答案
-
Hi,
Win8 style程序里没有messagebox,因为这个跟桌面程序风格很不同,因此取消messagebox用messagedialog代替,具体参考:
http://msdn.microsoft.com/en-us/library/windows/apps/windows.ui.popups.messagedialog.aspx
调用浏览器打开的话可以使用Windows.System.Launcher.LaunchUriAsync方法,会自动调用默认程序打开。
sample:
http://code.msdn.microsoft.com/windowsapps/Association-Launching-535d2cec
打包程序在其他电脑上测试可以看看ruiqing zhang的解答。
Aaron Xue [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
- 已建议为答案 Damon.Tian 2012年9月14日 12:17
- 已标记为答案 刘白菜 2012年9月17日 4:24
全部回复
-
Hi,
Win8 style程序里没有messagebox,因为这个跟桌面程序风格很不同,因此取消messagebox用messagedialog代替,具体参考:
http://msdn.microsoft.com/en-us/library/windows/apps/windows.ui.popups.messagedialog.aspx
调用浏览器打开的话可以使用Windows.System.Launcher.LaunchUriAsync方法,会自动调用默认程序打开。
sample:
http://code.msdn.microsoft.com/windowsapps/Association-Launching-535d2cec
打包程序在其他电脑上测试可以看看ruiqing zhang的解答。
Aaron Xue [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
- 已建议为答案 Damon.Tian 2012年9月14日 12:17
- 已标记为答案 刘白菜 2012年9月17日 4:24