NavigatingCancelEventArgs.Uri Property
Silverlight
Gets the uniform resource identifier (URI) for the content that is being navigated to.
Namespace: System.Windows.Navigation
Assembly: System.Windows (in System.Windows.dll)
The following example shows how to override the OnNavigatingFrom method and use the NavigatingCancelEventArgs object to determine if a child window is displayed.
public partial class About : Page { public About() { InitializeComponent(); } protected override void OnNavigatingFrom(NavigatingCancelEventArgs e) { if (e.Uri.ToString().Contains("/Home")) { SurveyWindow surveyChildWindow = new SurveyWindow(); surveyChildWindow.Show(); } base.OnNavigatingFrom(e); } }
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.