示例#1
0
 public void Message(string headline, string message)
 {
     Application.Current.Dispatcher.Invoke(new Action(() =>
     {
         growlNotifications.AddNotification(new Notification {
             Title = headline, ImageUrl = "Resources/notification-icon.png", Message = message
         });
     }));
 }
示例#2
0
 private void Button_Click_1(object sender, RoutedEventArgs e)
 {
     growlNotifications.AddNotification(new Notification {
         Title = "Mesage #2", ImageUrl = "pack://application:,,,/Resources/notification-icon.png", Message = "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."
     });
 }