private void VisualStateGroup_CurrentStateChanged(object sender, Windows.UI.Xaml.VisualStateChangedEventArgs e) { if (e.NewState == VisualStateMin720) { Frame.Navigate(typeof(OverviewPage), ViewModel.LedgerEntry); } }
private void VisualStateTriggers_CurrentStateChanged(object sender, Windows.UI.Xaml.VisualStateChangedEventArgs e) { if (e.NewState == MobileState && (e.OldState == DesktopState || e.OldState == DesktopState1) && (NewsViewModel.LastSelectedNews.NewsContent != null && NewsViewModel.LastSelectedNews.NewsContent.Count >= 0)) { Frame.Navigate(typeof(NewsDetailPage), null, new SuppressNavigationTransitionInfo()); } }
private void VisualStateGroup_CurrentStateChanged(object sender, Windows.UI.Xaml.VisualStateChangedEventArgs e) { if (e.NewState.Name == "Small") { Model.DisplayMode = true; } else { Model.DisplayMode = false; } }