private void button1_Click(object sender, RoutedEventArgs e) { NavigationService.Navigate(new Uri("/page.xaml?msg=" + textBox1.Text + "msg2=" + textBox2.Text, UriKind.Relative)); }
protected override void OnNavigatedTo(System.Windows.Navigation.NavigationEventArgs e) { base.OnNavigatedTo(e); string msg = ""; string msg2 = ""; if (NavigationContext.QueryString.TryGetValue("msg", out msg)) p1.Text = msg; if (NavigationContext.QueryString.TryGetValue("msg2", out msg2)) p2.Text = msg2; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)