Presentation is loading. Please wait.

Presentation is loading. Please wait.

3 4 5 6 private void page2Button_Click(object sender, RoutedEventArgs e) { NavigationService.Navigate(new Uri("/PageTwo.xaml", UriKind.RelativeOrAbsolute));

Similar presentations


Presentation on theme: "3 4 5 6 private void page2Button_Click(object sender, RoutedEventArgs e) { NavigationService.Navigate(new Uri("/PageTwo.xaml", UriKind.RelativeOrAbsolute));"— Presentation transcript:

1

2

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


Download ppt "3 4 5 6 private void page2Button_Click(object sender, RoutedEventArgs e) { NavigationService.Navigate(new Uri("/PageTwo.xaml", UriKind.RelativeOrAbsolute));"

Similar presentations


Ads by Google