WpfNotificationService Class
Class WpfNotificationService.
Implements the IWpfNotificationService
Namespace:
Wpf.NotificationCenter.ServicesAssembly: Wpf.NotificationCenter (in Wpf.NotificationCenter.dll)
Syntax
public class WpfNotificationService : IWpfNotificationService
Public Class WpfNotificationService _ Implements IWpfNotificationService
public ref class WpfNotificationService : IWpfNotificationService
Examples
C#
services.UseWpfNotificationCenter();
C#
public MyClass(IWpfNotificationService notificationService) {}
C#
notificationService.Create(alertTitle, alertText, notificationType, alertType: alertType);
notificationService.Create(alertTitle, alertText, notificationType, "NotificationCenter", alertType);
notificationService.CreateAlertNotification(title, text, NotificationType.Information);
notificationService.Information(title, text, AlertType.NotificationPopup);
notificationService.Success(title, text, AlertType.NotificationPopup);
notificationService.Error(title, text, AlertType.NotificationPopup);
notificationService.Warning(title, text, AlertType.NotificationPopup);
C#
var toast = notificationService.GetLastToastNotification(); var alert = notificationService.GetLastAlertCenterNotification();