public NotificationModule(String Title, String Summary) : this()
        {
            this.title   = Title;
            this.summary = Summary;

            fadeAnimate = new Animation.FadeAnimate(TimeSpan.FromSeconds(3));
            this.BeginAnimation(UserControl.OpacityProperty, fadeAnimate.FadeOut());
        }
Exemple #2
0
 private void bCancel_Click(object sender, RoutedEventArgs e)
 {
     fadeAnimate.Completed += (object senderObj, EventArgs args) => {
         if (this.OnCancel != null)
         {
             this.OnCancel(this, new RoutedEventArgs());
         }
     };
     this.IsEnabled = false;
     this.BeginAnimation(UserControl.OpacityProperty, fadeAnimate.FadeOut());
 }