Home /

| RSS

Get URI Of Silverlight Plugin Host Page

Within our Silverlight application if we want to know the URI where our Silverlight content is running, we can tap into System.Windows.Browser namespace. This namespace contains object which are full of Browser related information. This is an example of retrieving the URI from within Silverlight application.
<StackPanel x:Name="LayoutRoot" Margin="10">
<TextBlock Text="Your URL is: " />
[...]

[ More ] July 13th, 2009 | No Comments | Posted in Programming |