Exemple #1
0
        void FadeOut_Completed(object sender, EventArgs e)
        {
            FadeOut.Stop();
            FadeIn.Stop();
            currentTextBlock.Text = textCollection[textCounter];
            textCounter++;
            if (textCounter == 5)
            {
                textCounter = 0;

                if (currentTextBlock == PageTitle)
                {
                    currentTextBlock = ApplicationTitle;
                }
                else
                {
                    currentTextBlock = PageTitle;
                }

                Storyboard.SetTarget(FadeIn, currentTextBlock);
                Storyboard.SetTarget(FadeOut, currentTextBlock);
            }

            FadeIn.Begin();
        }
Exemple #2
0
 private void FadeOut_Tick(object sender, EventArgs e)
 {
     if (this.Opacity > 0)
     {
         this.Opacity = this.Opacity - 0.050;
     }
     else
     {
         if (!hide)
         {
             FadeOut.Stop(); Application.Exit();
         }
         else
         {
             hide = false;  FadeOut.Stop(); this.Hide();
         }
     }
 }
Exemple #3
0
 private void FadeOut_Tick(object sender, EventArgs e)
 {
     if (PresentationViewModelProp.OpacitiyFrontElement < 0)
     {
         PresentationViewModelProp.OpacitiyFrontElement = 0;
     }
     else if (PresentationViewModelProp.OpacitiyFrontElement > 0)
     {
         PresentationViewModelProp.OpacitiyFrontElement -= 0.020;
     }
     if (PresentationViewModelProp.OpacitiyBackElement < 0)
     {
         PresentationViewModelProp.OpacitiyBackElement = 0;
     }
     else if (PresentationViewModelProp.OpacitiyBackElement > 0)
     {
         PresentationViewModelProp.OpacitiyBackElement -= 0.020;
     }
     if (PresentationViewModelProp.OpacitiyBackElement == 0 && PresentationViewModelProp.OpacitiyFrontElement == 0)
     {
         FadeOut.Stop();
     }
 }