private void HideAllPages() { //Save settings, if settings is closed if (settingsPage.Visibility == Visibility.Visible) { viewModel.SaveSettings(); } foreach (Frame frame in subPages) { frame.Visibility = Visibility.Hidden; } }
private void HideAllPages() { //Save settings, if settings is closed if (settingsPage.Visibility == Visibility.Visible) { viewModel.SaveSettings(); } foreach (Frame frame in subPages) { frame.Visibility = Visibility.Hidden; } }