private void BackButton_Click(object sender, RoutedEventArgs e)
        {
            var rootFrame = Window.Current.Content as Frame;

            if (rootFrame.CanGoBack)
            {
                foreach (var item in rootFrame.BackStack)
                {
                    if (item.SourcePageType == typeof(LegoProjectPage))
                    {
                        rootFrame.BackStack.Remove(item);
                    }
                }
                rootFrame.GoBack();
            }
            else
            {
                NavigationUtils.NavigateToScreen(typeof(MainPage));
            }
        }
Exemple #2
0
 private void SettingsButton_Clicked(object sender, RoutedEventArgs e)
 {
     NavigationUtils.NavigateToScreen(typeof(Settings));
 }
Exemple #3
0
 private void Tutorials_Clicked(object sender, RoutedEventArgs e)
 {
     NavigationUtils.NavigateToScreen(typeof(TutorialMainPage));
 }
Exemple #4
0
 private void DeviceInfo_Clicked(object sender, RoutedEventArgs e)
 {
     NavigationUtils.NavigateToScreen(typeof(MainPage));
 }