Silverlight does not provide built in direct navigation system not it provides integration with browser navigation system but Silverlight provide some other features that can be used for navigation while developing Silverlight applications. There is two type of navigation is possible in Silverlight application
Browser Navigation
Browser navigation means Silverlight application can directly point to pages that are outside of your application domain or applications. Like you can use browser navigation for redirecting user to some other web page. To enable user navigation to other web pages Silverlight provides a user control called HyperLinkButton and by setting it’s Navigateuri. There is one more important property HyperLinkButton has called TargetName means whether url will be opened in a new windows or in same window. It’s Content property is display the text of HyperLinkButton Control.
<HyperlinkButton x:Name="hpb" Content=" All About ASP.Net" NavigateUri="http://allaboutasp.net" TargetName="_blank"></HyperlinkButton>
The above example is simple static browser navigation example but browser navigation can also be done programmatically by manipulating HTML DOM objects through the HtmlPage class.
<HyperlinkButton Content="Go to Silverlight Website" Click="GoToSilverlight" />
Imports System.Windows.Browser Partial Public Class HomePage Inherits Page Public Sub New() InitializeComponent() End Sub 'Executes when the user navigates to this page. Protected Overrides Sub OnNavigatedTo(ByVal e As System.Windows.Navigation.NavigationEventArgs) End Sub Protected Sub GoToSilverlight(ByVal sendar As Object, ByVal e As System.Windows.RoutedEventArgs) If (HtmlPage.IsPopupWindowAllowed) Then HtmlPage.PopupWindow( _ New Uri("http://www.silverlight.net"), Nothing, Nothing) Else HtmlPage.Window.Navigate(New Uri("http://www.silverlight.net")) End If End Sub End Class
Hi,
Interesting, I`ll quote it on my site later.