Пример #1
0
        private async void allAppsButton_Tapped(object sender, TappedRoutedEventArgs e)
        {
            DesktopBackButton.ShowBackButton();
            AllAppsGrid.Visibility = Visibility.Visible;
            await Task.WhenAll(
                AllAppsGrid.Fade(1).StartAsync(),
                AppListViewGrid.Blur(20).StartAsync());

            useMeTextBox.Focus(FocusState.Pointer);
        }
Пример #2
0
        private async void MainPage_BackRequested(object sender, BackRequestedEventArgs e)
        {
            if (AllAppsGrid.Visibility == Visibility.Visible)
            {
                DesktopBackButton.HideBackButton();
                e.Handled = true;
                await Task.WhenAll(
                    AllAppsGrid.Fade(0).StartAsync(),
                    AppListViewGrid.Blur(0).StartAsync());

                AllAppsGrid.Visibility = Visibility.Collapsed;
            }
        }