Пример #1
0
 public MainPage()
 {
     InitializeComponent();
     this.SizeChanged += OnSizeChanged;
     this.Loaded      += (sender, args) =>
     {
         FadeOutPage.Begin();
         ChangeLayout(Window.Current.Bounds.Width);
         for (int i = 0; i < SectionsGrid.Children.Count; i++)
         {
             if (i == _currentSection)
             {
                 continue;
             }
             UIAnimationHelper.FadeOut(SectionsGrid.Children[i]);
         }
         FadeInPage.Begin();
         if (!string.IsNullOrEmpty(App.TemporaryMRL))
         {
             OpenVideoFromFileExplorer();
         }
     };
     NavigationCacheMode = NavigationCacheMode.Enabled;
 }
 protected override void OnNavigatedTo(NavigationEventArgs e)
 {
     base.OnNavigatedTo(e);
     FadeInPage.Begin();
 }