浏览器silverlight中的NotificationWindow
有没有办法在浏览器中拥有NotificationWindow? 我需要浏览器中的NotificationWindow,而不是“浏览器外”中的NotificationWindow。
is there a way to have NotificationWindow in browser?
I need NotificationWindow in browser not in "out of browser".
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
正如 AnthonyWJones 所说,在 Silverlight 4 中,NotificationWindow 仅限于在浏览器外使用。
然而,使用 Silverlight 5,应用程序将能够在具有更高权限的浏览器中运行(在某些条件下)。
这意味着
NotificationWindow
将在浏览器中工作。有关 Silverlight 5 浏览器内受信任应用程序的详细信息 此处
Like AnthonyWJones said, in Silverlight 4 the
NotificationWindow
is restricted to Out Of Browser use.However with Silverlight 5, apps will be able to run in the browser with elevated permission (under certain conditions).
That means that the
NotificationWindow
will work in the browser.More info on Silverlight 5 in-browser trusted apps here
Silverlight 专门将
NotificationWindow
限制为 OOB 使用。您将需要在 Silverlight 之外找到其他东西来满足要求。Silverlight exclusively limits
NotificationWindow
to OOB use. You will need to find something else outside of Silverlight to acheive the requirement.正如大家所说,Silverlight 4 的浏览器中没有
NotificationWindow
。要解决此问题,您可以选择不同的方法:首先是等待 SL 5 的发布,或者另一方面 - 实现您自己的MessageBox
具有所需的功能。关于第二个,我可以帮助提供一些代码示例。As guys said, there is no
NotificationWindow
in browser for Silverlight 4. For solving this issue you can choose different ways: first is just to wait for release of SL 5 or on the other hand - implement your ownMessageBox
with desired functionality. Regarding second one I can help with some code samples.