小编spr*_*rrw的帖子

Universal Apps MessageBox:"当前上下文中不存在名称'MessageBox'"

我想使用MessageBox在我的WP8.1应用程序中显示下载错误.

我补充说:

using System.Windows;
Run Code Online (Sandbox Code Playgroud)

但是当我键入:

MessageBox.Show("");
Run Code Online (Sandbox Code Playgroud)

我收到错误:

"The name 'MessageBox' does not exist in the current context"
Run Code Online (Sandbox Code Playgroud)

在对象浏览器中,我发现这样的类应该存在,并且在"Project-> Add reference ... - > Assemblies-> Framework"中显示所有程序集都被引用.

我错过了什么吗?或者还有另一种方式来展示像messagebox这样的东西?

c# windows-phone-8.1 win-universal-app

60
推荐指数
3
解决办法
8万
查看次数

标签 统计

c# ×1

win-universal-app ×1

windows-phone-8.1 ×1