private async void GoBack_Click(object sender, RoutedEventArgs e) { if (Window.Current.Bounds.Width == 320 && FirstPanelGridView.Visibility == Windows.UI.Xaml.Visibility.Collapsed) { FirstPanelGridView.Visibility = Windows.UI.Xaml.Visibility.Visible; } else { await FadeOutPage.BeginAsync(); NavigationService.NavigateTo(typeof(MainPage)); } }
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; }
private async void GoBack_Click(object sender, RoutedEventArgs e) { await FadeOutPage.BeginAsync(); NavigationService.NavigateTo(typeof(MainPage)); }
async Task MediaServers() { await FadeOutPage.BeginAsync(); NavigationService.NavigateTo(typeof(DLNAPage)); }
async Task ExternalStorage() { await FadeOutPage.BeginAsync(); NavigationService.NavigateTo(typeof(RemovableStoragePage)); }