lepoco / wpfui

WPF UI provides the Fluent experience in your known and loved WPF framework. Intuitive design, themes, navigation and new immersive controls. All natively and effortlessly.
https://wpfui.lepo.co
MIT License
7.74k stars 756 forks source link

✨ Add Toast Notification Service #1156

Closed keeleycenc closed 4 months ago

keeleycenc commented 4 months ago

Pull request type

Please check the type of change your PR introduces:

What is the current behavior?

// TODO: Implement native Toast without external libraries
throw new NotImplementedException();

What is the new behavior?

<ContentControl x:Name="NotificationHost"/>
private readonly INotificationService _notificationService;

private void ShowNotification(string message) {
    _notificationService.Show(message, NotificationHost);
}

Other information

TNotification

pomianowski commented 4 months ago

Hey @keeleycenc, thanks for the work you put in, but this is not Toast to be implemented.

https://learn.microsoft.com/en-us/windows/apps/design/shell/tiles-and-notifications/toast-notifications-overview