是否可以在Silverlight中以“浏览器外"模式更改应用程序的标题 [英] Is it Possible To change the Title of the application in Out-of-Browser mode in silverlight

查看:110
本文介绍了是否可以在Silverlight中以“浏览器外"模式更改应用程序的标题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Silverlight 4.0应用程序,在浏览器外模式下,根据用户登录到该应用程序后,我需要更改该应用程序的窗口标题.

I have a silverlight 4.0 application where I need to change the Window Title of the application after login to the application according to the User in the Out-of-Browser mode.

有可能吗?

我已经通过以下链接

http://www.codeproject.com/Articles/68955/Silverlight-4-How-Can-I-Create-a-Customized-OOB-Wi

谢谢 Chittaranjan

Thanks Chittaranjan

推荐答案

我不认为Silverlight 4中有可能.

I don't believe it is possible in Silverlight 4.

在Silverlight 5中,只要您以增强的信任度运行,这将非常容易:

In Silverlight 5, it's very easy, provided you're running with elevated trust:

App.Current.MainWindow.Title = "Your new window title";

但是,有关Window.Title 属性的MSDN文档明确指出,仅Silverlight 5支持此属性.

However, the MSDN documentation for the Window.Title property clearly states that this property is only supported in Silverlight 5.

这篇关于是否可以在Silverlight中以“浏览器外"模式更改应用程序的标题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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