private void Anim_Completed(object sender, AnimationSetCompletedEventArgs e)
 {
     rootFrame              = new Frame();
     rootFrame.Content      = new MainPage();
     Window.Current.Content = rootFrame;
     rootFrame.Navigate(typeof(MainPage));
 }
Exemplo n.º 2
0
 private void Fault_DarkAnimation_Completed(object sender, AnimationSetCompletedEventArgs e)
 {
     foreach (AnimationSet aS in listOfLightAnimations)
     {
         aS.StartAsync();
     }
     //  throw new NotImplementedException();
 }
Exemplo n.º 3
0
        private void FaultDarkAnimation_Completed(object sender, AnimationSetCompletedEventArgs e)
        {
            for (int i = 0; i < 10; i++)
            {
                blink = listOfLightAnimations[i].StartAsync();
            }

            // throw new NotImplementedException();
        }
Exemplo n.º 4
0
 private async void Fade_Completed(object sender, AnimationSetCompletedEventArgs e)
 {
     if (sender is AnimationSet animSet)
     {
         FadeCompleted?.Invoke(sender, e);
         animSet.Completed -= FadeCompleted;
         _animations.Remove(animSet);
         await ShowControlAsync();
     }
 }
Exemplo n.º 5
0
 private void NBC_Mode_Dark_Completed(object sender, AnimationSetCompletedEventArgs e)
 {
     if (nbcMode[0])
     {
         listOfLightAnimations[0].StartAsync();
     }
     else
     {
         listOfLightAnimations[0].Stop();
     }
     // throw new NotImplementedException();
 }
Exemplo n.º 6
0
 private void Fault_Dark_Completed(object sender, AnimationSetCompletedEventArgs e)
 {
     if (faultMode[0])
     {
         Fault_Light.StartAsync();
     }
     else
     {
         Fault_Light.Stop();
     }
     //  throw new NotImplementedException();
 }
Exemplo n.º 7
0
 private void FlapperValveDarkAnimation_Completed1(object sender, AnimationSetCompletedEventArgs e)
 {
     if (nbcMode[1])
     {
         listOfLightAnimations[1].StartAsync();
     }
     else
     {
         listOfLightAnimations[1].Stop();
     }
     //  throw new NotImplementedException();
 }
Exemplo n.º 8
0
        /// <summary>
        /// Opening completed
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private static void OpenBlurAnim_Completed(object sender, AnimationSetCompletedEventArgs e)
        {
            WindowWrapper.Current().Dispatcher.Dispatch(() =>
            {
                var modal = Window.Current.Content as ModalDialog;

                if (!(modal.ModalContent is ModalWindow view))
                {
                    modal.ModalContent = view = new ModalWindow(ModalContent);
                }

                view.GotIt.IsEnabled = true;
            });
        }
Exemplo n.º 9
0
        /// <summary>
        /// Closing completed
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected static void CloseBlurAnim_Completed(object sender, AnimationSetCompletedEventArgs e)
        {
            WindowWrapper.Current().Dispatcher.Dispatch(() =>
            {
                var modal = Window.Current.Content as ModalDialog;

                if (!(modal.ModalContent is ModalWindow view))
                {
                    modal.ModalContent = view = new ModalWindow(null);
                }

                modal.IsModal = view.IsShowed = false;
            });
        }
Exemplo n.º 10
0
        // De code waarmee de afbeelding die de spinner aangeeft een bepaald aantal rondjes draait, zodat deze niet elke keer op hetzelfde stopt en er dus elke keer een andere vraag komt

        private void Animation_Completed(object sender, AnimationSetCompletedEventArgs e)
        {
            if (randomrotation >= 0 && randomrotation < 120)
            {
                this.Frame.Navigate(typeof(VraagPaginaAardrijkskunde));
            }
            else if (randomrotation >= 120 && randomrotation < 240)
            {
                this.Frame.Navigate(typeof(VraagPaginaNatuur));
            }
            else
            {
                this.Frame.Navigate(typeof(VraagPaginaGeschiedenis));
            }
        }
Exemplo n.º 11
0
        private void HideAnimation_Completed(object sender, AnimationSetCompletedEventArgs e)
        {
            // 別のアニメーションが実行中の場合はキャンセル
            if (_CurrentAnimation?.State == AnimationSetState.Running)
            {
                return;
            }

            try
            {
                _SkipChangeVisible = true;
                IsVisible          = false;
            }
            finally
            {
                _SkipChangeVisible = false;
            }

            Debug.WriteLine($"{nameof(VisiblityFadeChanger)}: 非表示アニメーション完了");
        }
Exemplo n.º 12
0
 private async void Fade_Completed(object sender, AnimationSetCompletedEventArgs e)
 {
     TweetTextBox.Text = "";
     await TweetTextBox.Fade(1, ShowAnimationTime).StartAsync();
 }
 private void Anim_Completed(object sender, AnimationSetCompletedEventArgs e)
 {
     this.Visibility = Visibility.Collapsed;
 }
Exemplo n.º 14
0
 private static void SlideOutAnim_Completed(object sender, AnimationSetCompletedEventArgs e)
 {
     _runningFrameAnimations.Clear();
     FrameSlideOutAnimationCompleted?.Invoke(null, EventArgs.Empty);
 }
Exemplo n.º 15
0
 private void HideVoiceChannelStatusViewCompleted(object sender, AnimationSetCompletedEventArgs e)
 {
     VoiceChannelStatusViewLayout.Visibility = Visibility.Collapsed;
 }
Exemplo n.º 16
0
 private void HideLoginScreenBarrieCompleted(object sender, AnimationSetCompletedEventArgs e)
 {
     LoginScreenBarrie.Visibility = Visibility.Collapsed;
 }
Exemplo n.º 17
0
 private static void SlideInAnim_Completed(object sender, AnimationSetCompletedEventArgs e)
 {
     _runningFrameAnimations.Clear();
 }
Exemplo n.º 18
0
 private async void OnWinstonArrivedRight(object sender, AnimationSetCompletedEventArgs e)
 {
     ToggleWinstonDirection();
     await PlayWinstonAnimationAsync();
 }
Exemplo n.º 19
0
 private void OnShowServers(object sender, AnimationSetCompletedEventArgs e)
 {
     ChannelsLayout.Visibility = Visibility.Collapsed;
     ServersLayout.Visibility  = Visibility.Visible;
 }