Retrieve Browser Information In Silverlight
This blog is not updated anymore.
I am now writing at my new site One .Net Way
I am now writing at my new site One .Net Way
Many times we need to know which browser our content is running on. Silverlight gives us the ability to find that information through BrowserInformation class which can be accessed through BrowserInformation property of HtmlPage class located within System.Windows.Browser namespace. I have created this simple demo to retrieve information about the browser. Below is the code followed by silverlight content which displays browser information.
Note that I set the DataContext in constructor. This is all I need to do in C#. I will set the values using data binding in XAML.
You may also like to read...