Download presentation
Presentation is loading. Please wait.
Published bySharlene Little Modified over 9 years ago
3
3
4
4
5
5
6
6 private void page2Button_Click(object sender, RoutedEventArgs e) { NavigationService.Navigate(new Uri("/PageTwo.xaml", UriKind.RelativeOrAbsolute)); }
7
7
8
8
9
9
10
10
11
11 private void PhoneApplicationPage_BackKeyPress( object sender, System.ComponentModel.CancelEventArgs e) { e.Cancel = true; }
12
12 private void PhoneApplicationPage_BackKeyPress( object sender, System.ComponentModel.CancelEventArgs e) { if (MessageBox.Show("Do you really want to exit?", "Page Exit", MessageBoxButton.OKCancel) != MessageBoxResult.OK) { e.Cancel = true; } }
13
13
14
14
15
15 private void page3Button_Click(object sender, RoutedEventArgs e) { NavigationService.Navigate( new Uri("/PageThree.xaml?info=" + InfoTextBox.Text, UriKind.Relative)); }
16
16
17
17 protected override void OnNavigatedTo (System.Windows.Navigation.NavigationEventArgs e) { string info = ""; if (NavigationContext.QueryString.TryGetValue("info", out info) ) infoTextBlockFromQuery.Text = info; }
18
18
19
19
20
20
21
21 public partial class App : Application { // To be used from all pages in the application public string LoginName; }
22
22 App thisApp = App.Current as App; LoginTextBox.Text = thisApp.LoginName;
23
23
24
24
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.