This Is The MainPage.Xaml
- <StackPanel>
- <TextBox InputScope="Chat" Name="TextBoxUsername"></TextBox>
- <Button Click="Button_Click">Signup</Button>
- </StackPanel>
MainPage.xaml.cs
- private void Button_Click(object sender, RoutedEventArgs e)
- {
- NavigationService.Navigate(new Uri("/Page1.xaml?key1=" + TextBoxUsername.Text, UriKind.Relative));
- }
Page1.xaml
- <StackPanel Grid.Row="0" Margin="12,17,0,28">
- <TextBlock Text="MY APPLICATION" Style="{StaticResource PhoneTextNormalStyle}"/>
- <TextBlock Name="TextBlockUsername" Text="" Margin="9,-7,0,0" Style="{StaticResource PhoneTextTitle1Style}"/>
- </StackPanel>
Page1.xaml.cs
In Page1.xaml.cs under the initialize component Page1_loaded method was called and in the Page1_loaded method definition a string variable val was declared to return the incoming data in the string variable val and showing that data in a message dialog box.
- public partial class Page1 : PhoneApplicationPage
- {
- public Page1()
- {
- InitializeComponent();
- this.Loaded += Page1_Loaded;
- }
- private void Page1_Loaded(object sender, RoutedEventArgs e)
- {
- string val;
- if (NavigationContext.QueryString.TryGetValue("key1", out val))
- {
- MessageBox.Show(val, "Information", MessageBoxButton.OK);
- }
- }
- }
For More visit.. 
Vu Hong TrieuPosted Jul 29, 2015, 5:43 AM
Nice tut
Gowtham RajamanickamPosted Apr 11, 2015, 11:41 AM
good one
Karthik Muthu KaruppanPosted Apr 10, 2015, 2:08 PM
Good start
Sibeesh VenuPosted Apr 10, 2015, 1:34 AM
Good one.
Santhakumar MunuswamyPosted Apr 9, 2015, 10:55 PM
Good