Enterwell / Wpf.Notifications

WPF notifications UI controls (as seen in VS Code)
MIT License
394 stars 39 forks source link

notification dont close #25

Closed ghost1372 closed 5 years ago

ghost1372 commented 5 years ago

hi i use version 1.4.1 but when i use animate(true) my notification dont close. dissmisWithButton and DissmisWithDelay both not work. it work if i use animate(false)

AleksandarDev commented 5 years ago

@ghost1372 Thank you for reporting this. I'll take a look today and publish a bugfix.

@UmutComlekci You did some changes on that particular piece, any ideas?

UmutComlekci commented 5 years ago

@ghost1372 Can you share with us buggy code block? We can understand the problem more clearly.

ghost1372 commented 5 years ago

@umutComlekci This is my code

var builder = NotificationMessageBuilder.CreateMessage();
            builder.Manager = this.Manager;
            builder.Message = this.Manager.Factory.GetMessage();
            builder.Background(AppVariable.BGBLACK);
            builder.HasBadge("هشدار");
                builder.Accent(AppVariable.RED);
                builder.HasHeader($"آیا برای حذف {param[1]} {param[0]} اطمینان دارید؟");
                builder.Dismiss().WithButton("بله",button=>{});
builder.Animates(true);
            builder.AnimationInDuration(AppVariable.NotificationAnimInDur);
            builder.AnimationOutDuration(AppVariable.NotificationAnimOutDur);

            builder.Queue();
ghost1372 commented 5 years ago

@AleksandarDev any update?

AleksandarDev commented 5 years ago

@ghost1372 I'll release bugfix tonight.