• Home
  • About
  •  

    Retrieve Browser Information In Silverlight

    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.

    DownloadCode

    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.

    image 
     
    
    image 
    

    kick it on DotNetKicks.com

    Leave a Reply