private void VisualStateGroup_CurrentStateChanged(object sender, Windows.UI.Xaml.VisualStateChangedEventArgs e)
 {
     if (e.NewState == VisualStateMin720)
     {
         Frame.Navigate(typeof(OverviewPage), ViewModel.LedgerEntry);
     }
 }
示例#2
0
 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());
     }
 }
示例#3
0
 private void VisualStateGroup_CurrentStateChanged(object sender, Windows.UI.Xaml.VisualStateChangedEventArgs e)
 {
     if (e.NewState.Name == "Small")
     {
         Model.DisplayMode = true;
     }
     else
     {
         Model.DisplayMode = false;
     }
 }