|
8 | 8 | using System; |
9 | 9 | using System.Threading.Tasks; |
10 | 10 | using Files.App.Data.Enums; |
| 11 | +using Microsoft.UI.Xaml.Media.Animation; |
11 | 12 |
|
12 | 13 | namespace Files.App.Dialogs |
13 | 14 | { |
@@ -50,16 +51,16 @@ private void MainSettingsNavigationView_SelectionChanged(NavigationView sender, |
50 | 51 |
|
51 | 52 | _ = Enum.Parse<SettingsPageKind>(selectedItem.Tag.ToString()) switch |
52 | 53 | { |
53 | | - SettingsPageKind.GeneralPage => SettingsContentFrame.Navigate(typeof(GeneralPage)), |
54 | | - SettingsPageKind.AppearancePage => SettingsContentFrame.Navigate(typeof(AppearancePage)), |
55 | | - SettingsPageKind.LayoutPage => SettingsContentFrame.Navigate(typeof(LayoutPage)), |
56 | | - SettingsPageKind.FoldersPage => SettingsContentFrame.Navigate(typeof(FoldersPage)), |
57 | | - SettingsPageKind.ActionsPage => SettingsContentFrame.Navigate(typeof(ActionsPage)), |
58 | | - SettingsPageKind.TagsPage => SettingsContentFrame.Navigate(typeof(TagsPage)), |
59 | | - SettingsPageKind.DevToolsPage => SettingsContentFrame.Navigate(typeof(DevToolsPage)), |
60 | | - SettingsPageKind.AdvancedPage => SettingsContentFrame.Navigate(typeof(AdvancedPage)), |
61 | | - SettingsPageKind.AboutPage => SettingsContentFrame.Navigate(typeof(AboutPage)), |
62 | | - _ => SettingsContentFrame.Navigate(typeof(AppearancePage)) |
| 54 | + SettingsPageKind.GeneralPage => SettingsContentFrame.Navigate(typeof(GeneralPage), null, new SuppressNavigationTransitionInfo()), |
| 55 | + SettingsPageKind.AppearancePage => SettingsContentFrame.Navigate(typeof(AppearancePage), null, new SuppressNavigationTransitionInfo()), |
| 56 | + SettingsPageKind.LayoutPage => SettingsContentFrame.Navigate(typeof(LayoutPage), null, new SuppressNavigationTransitionInfo()), |
| 57 | + SettingsPageKind.FoldersPage => SettingsContentFrame.Navigate(typeof(FoldersPage), null, new SuppressNavigationTransitionInfo()), |
| 58 | + SettingsPageKind.ActionsPage => SettingsContentFrame.Navigate(typeof(ActionsPage), null, new SuppressNavigationTransitionInfo()), |
| 59 | + SettingsPageKind.TagsPage => SettingsContentFrame.Navigate(typeof(TagsPage), null, new SuppressNavigationTransitionInfo()), |
| 60 | + SettingsPageKind.DevToolsPage => SettingsContentFrame.Navigate(typeof(DevToolsPage), null, new SuppressNavigationTransitionInfo()), |
| 61 | + SettingsPageKind.AdvancedPage => SettingsContentFrame.Navigate(typeof(AdvancedPage), null, new SuppressNavigationTransitionInfo()), |
| 62 | + SettingsPageKind.AboutPage => SettingsContentFrame.Navigate(typeof(AboutPage), null, new SuppressNavigationTransitionInfo()), |
| 63 | + _ => SettingsContentFrame.Navigate(typeof(AppearancePage), null, new SuppressNavigationTransitionInfo()) |
63 | 64 | }; |
64 | 65 | } |
65 | 66 |
|
|
0 commit comments