Example #1
0
 private void Button_Click(object sender, RoutedEventArgs e)
 {
     string content = (sender as Button).Content.ToString();
     // Tab Logic
     if (content.Equals("Home"))
     {
         Home home = new Home();
         this.NavigationService.Navigate(home);
     }
     else if (content.Equals("Upload"))
     {
         Upload upload = new Upload();
         this.NavigationService.Navigate(upload);
     }
     else
     {
         Pending pending = new Pending();
         this.NavigationService.Navigate(pending);
     }
 }
Example #2
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            string content = (sender as Button).Content.ToString();

            // Tab Logic
            if (content.Equals("Home"))
            {
                Home home = new Home();
                this.NavigationService.Navigate(home);
            }
            else if (content.Equals("Upload"))
            {
                Upload upload = new Upload();
                this.NavigationService.Navigate(upload);
            }
            else
            {
                Pending pending = new Pending();
                this.NavigationService.Navigate(pending);
            }
        }