Esempio n. 1
0
        public void FadeOut()
        {
            var da = new DoubleAnimation(1.0, 0, 200.Milliseconds());

            da.Completed += (sender, args) => this.Close();
            this.BeginAnimation(OpacityProperty, da);
            FadeableManager.RemoveFadeable(this);
        }
Esempio n. 2
0
 public Fadeable()
 {
     this.Top = FadeableManager.AddFadeable(this);
     this.MouseLeftButtonUp += (sender, args) => this.FadeOut();
     this.Cursor             = Cursors.Hand;
 }