Monday, November 22, 2010

How to update Internet Explorer Status Bar from Silverlight ?

Here is the sample code which checks for Internet Explorer and updates the status bar to "Hello World".

string strAgent = HtmlPage.BrowserInformation.UserAgent;
if (strAgent.IndexOf("MSIE") > -1)
    HtmlPage.Window.SetProperty("status", "Hello World");

No comments:

Post a Comment

All Blogs so far ...