Enterwell / Wpf.Notifications

WPF notifications UI controls (as seen in VS Code)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

notification dont close

ghost1372 opened this issue · comments

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)

@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?

commented

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

@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 I'll release bugfix tonight.