private async Task SwitchNavBarLayout(NavBarLayoutType type) { if (type == NavBarLayoutType.NavBarNone) { MainWindow.Instance.LinkOpenEnable(false); RootLayout.DisplayMode = SplitViewDisplayMode.Inline; MainWindow.Instance.HideSettings(); await NavBar.SwitchLayout(type) .ConfigureAwait(true); } else { await NavBar.SwitchLayout(type) .ConfigureAwait(true); RootLayout.DisplayMode = SplitViewDisplayMode.CompactInline; MainWindow.Instance.LinkOpenEnable(true); } }
private async Task SwitchNavBarLayout( NavBarLayoutType type) { if (type == NavBarLayoutType.NavBarNone) { MainWindow.Instance.DeactivateOpenLink(); RootLayout.DisplayMode = SplitViewDisplayMode.Inline; MainWindow.Instance.SettingsFlyout.Hide(); await NavBar.SwitchLayout(type) .ConfigureAwait(true); } else { await NavBar.SwitchLayout(type) .ConfigureAwait(true); RootLayout.DisplayMode = SplitViewDisplayMode.CompactInline; MainWindow.Instance.ActivateOpenLink(); } }