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); }
public Fadeable() { this.Top = FadeableManager.AddFadeable(this); this.MouseLeftButtonUp += (sender, args) => this.FadeOut(); this.Cursor = Cursors.Hand; }