是否可以在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.