Example #1
0
        private async void Loading_Loaded(object sender, RoutedEventArgs e)
        {
            await Task.Delay(500);

            await LoadingScreen.HideUsingLinearAnimationAsync(500);

            await GameRulesContent.ShowUsingLinearAnimationAsync(500);
        }
Example #2
0
        private async void StartButton_Click(object sender, RoutedEventArgs e)
        {
            App.CurrentApp.CurrentRecord = new Models.RecordItem()
            {
                Name         = PlayerName.Text,
                StudentFiled = FieldName.Text
            };

            await GameRulesContent.HideUsingLinearAnimationAsync(250);

            await LoadingScreen.ShowUsingLinearAnimationAsync(250);

            await Task.Delay(250);

            await this.HideUsingLinearAnimationAsync(500);

            App.MainMenu.PageFrame.Navigate(new QuestionLoader());
        }