// ----------------------------------------------------------------------------------------------------------------- // protected override void OnNavigatedTo(System.Windows.Navigation.NavigationEventArgs e) { SwipeAnimation.Begin(); this.ApplicationBar.Mode = (AppHelper.AppBar) ? Microsoft.Phone.Shell.ApplicationBarMode.Default : Microsoft.Phone.Shell.ApplicationBarMode.Minimized; TBFirst.TextAlignment = TBSecond.TextAlignment = TBThird.TextAlignment = (AppHelper.TextStyle) ? TextAlignment.Left : TextAlignment.Center; if (AppHelper.Storage.Contains("LAST_INDEX_PAGE")) { AppHelper.Storage.Remove("LAST_INDEX_PAGE"); } if (AppHelper.Storage.Contains("IS_RATE")) { AppHelper.Storage.Remove("IS_RATE"); } if (AppHelper.Storage.Contains("APP_TEXT_STYLE")) { AppHelper.Storage.Remove("APP_TEXT_STYLE"); } if (AppHelper.Storage.Contains("APP_BAR")) { AppHelper.Storage.Remove("APP_BAR"); } if (AppHelper.Storage.Count > 0) { this.SelectedIndexLogic(false); } else { this.EmptyList(); } }
// ----------------------------------------------------------------------------------------------------------------- // protected override void OnNavigatedTo(NavigationEventArgs e) { SwipeAnimation.Begin(); this.ApplicationBar.Mode = (AppHelper.AppBar) ? Microsoft.Phone.Shell.ApplicationBarMode.Default : Microsoft.Phone.Shell.ApplicationBarMode.Minimized; TBFirst.TextAlignment = TBSecond.TextAlignment = TBThird.TextAlignment = (AppHelper.TextStyle) ? TextAlignment.Left : TextAlignment.Center; if (!AppHelper.IsTrial && ApplicationBar.MenuItems.Count >= 3) { ApplicationBar.MenuItems.RemoveAt(2); } this.LikeLogic(); Adv.Visibility = (AppHelper.IsTrial) ? System.Windows.Visibility.Visible : System.Windows.Visibility.Collapsed; }
private void MainPivot_LoadingPivotItem(object sender, PivotItemEventArgs e) { if (MainPivot.SelectedIndex == 0 && _lastIndexItem == 1) { this.IndexPage--; } else if (MainPivot.SelectedIndex == 0 && _lastIndexItem == 2) { this.IndexPage++; } else if (MainPivot.SelectedIndex == 1 && _lastIndexItem == 0) { this.IndexPage++; } else if (MainPivot.SelectedIndex == 1 && _lastIndexItem == 2) { this.IndexPage--; } else if (MainPivot.SelectedIndex == 2 && _lastIndexItem == 0) { this.IndexPage--; } else if (MainPivot.SelectedIndex == 2 && _lastIndexItem == 1) { this.IndexPage++; } _lastIndexItem = MainPivot.SelectedIndex; SwipeAnimation.Begin(); SVFirst.ScrollToVerticalOffset(0.0d); SVSecond.ScrollToVerticalOffset(0.0d); SVThird.ScrollToVerticalOffset(0.0d); if (AppHelper.Storage.Count > 0) { this.SelectedIndexLogic(true); } else { this.EmptyList(); } }
// Навигация protected override void OnNavigatedTo(NavigationEventArgs e) { this.FontLogic(); if (AppHelper.IsTrial) { Banner.Visibility = System.Windows.Visibility.Visible; Banner.IsEnabled = true; Banner.Margin = new Thickness(0, 35, 0, 0); Banner.IsAnimationEnabled = false; } else { Banner.Visibility = System.Windows.Visibility.Collapsed; } // Панель быстрого доступа if (AppHelper.AppBar) { this.ApplicationBar.Mode = Microsoft.Phone.Shell.ApplicationBarMode.Default; } else { this.ApplicationBar.Mode = Microsoft.Phone.Shell.ApplicationBarMode.Minimized; } if (!AppHelper.IsTrial && ApplicationBar.MenuItems.Count >= 3) { ApplicationBar.MenuItems.RemoveAt(2); } SwipeAnimation.Begin(); this.LikeLogic(); }
private void MainPivot_LoadingPivotItem(object sender, PivotItemEventArgs e) { if (MainPivot.SelectedIndex == 0 && _lastIndexItem == 1) { AppHelper.PageIndex--; } else if (MainPivot.SelectedIndex == 0 && _lastIndexItem == 2) { AppHelper.PageIndex++; } else if (MainPivot.SelectedIndex == 1 && _lastIndexItem == 0) { AppHelper.PageIndex++; } else if (MainPivot.SelectedIndex == 1 && _lastIndexItem == 2) { AppHelper.PageIndex--; } else if (MainPivot.SelectedIndex == 2 && _lastIndexItem == 0) { AppHelper.PageIndex--; } else if (MainPivot.SelectedIndex == 2 && _lastIndexItem == 1) { AppHelper.PageIndex++; } _lastIndexItem = MainPivot.SelectedIndex; SwipeAnimation.Begin(); SVFirst.ScrollToVerticalOffset(0.0d); SVSecond.ScrollToVerticalOffset(0.0d); SVThird.ScrollToVerticalOffset(0.0d); this.SelectedIndexLogic(); }
void HandlePause_Clicked(object sender, EventArgs e) { SwipeAnimation.PlayAnimation(); }