How can you detect Browser Information in Silverlight? - Online Free Computer Tutorials.

'Software Development, Games Development, Mobile Development, iOS Development, Android Development, Window Phone Development. Dot Net, Window Services,WCF Services, Web Services, MVC, MySQL, SQL Server and Oracle Tutorials, Articles and their Resources

Friday, August 12, 2011

How can you detect Browser Information in Silverlight?

Sometime we need to detect the browser information of the user's computer where our Silverlight application is running. We can do this using the JavaScript but sometime it is useful to detect it from our Silverlight application. So, how to do it? Let us discuss this with a small simple example.   Read this post to know how to detect the browser information using the HtmlPage.BrowserInformation property.   Know about HtmlPage.BrowserInformation Detecting browser information is not much difficult. You can use the inbuilt HtmlPage class available in the namespace called System.Windows.Browser. The class has static property called BrowserInformation of type BrowserInformation. This returns the following properties:     public sealed class BrowserInformation { public string ProductName { get; } public string ProductVersion { get; } public string Name { get; } public Version BrowserVersion { get;...

No comments:

Post a Comment