private void NavigationHandler(object sender, NavigationEventArgs e) { // Handle navigation event here }
private void GetCurrentPosition() { Uri currentUri = NavigationService.Current.Source; string currentURL = currentUri.ToString(); // Use currentURL here }The NavigationEventArgs class is part of the .NET Framework class library, which is included in the System assembly.