diff --git a/Hardcodet.NotifyIcon.Wpf/Source/NotifyIconWpf/TaskbarIcon.cs b/Hardcodet.NotifyIcon.Wpf/Source/NotifyIconWpf/TaskbarIcon.cs index acd23fa..5a7538a 100644 --- a/Hardcodet.NotifyIcon.Wpf/Source/NotifyIconWpf/TaskbarIcon.cs +++ b/Hardcodet.NotifyIcon.Wpf/Source/NotifyIconWpf/TaskbarIcon.cs @@ -792,7 +792,6 @@ namespace Hardcodet.Wpf.TaskbarNotification } } - /// /// Displays a balloon tip with the specified title, /// text, and a custom icon in the taskbar for the specified time period. @@ -800,15 +799,21 @@ namespace Hardcodet.Wpf.TaskbarNotification /// The title to display on the balloon tip. /// The text to display on the balloon tip. /// A custom icon. + /// True to allow large icons (Windows Vista and later). /// If /// is a null reference. - public void ShowBalloonTip(string title, string message, Icon customIcon) + public void ShowBalloonTip(string title, string message, Icon customIcon, bool largeIcon = false) { if (customIcon == null) throw new ArgumentNullException("customIcon"); lock (this) { - ShowBalloonTip(title, message, BalloonFlags.User, customIcon.Handle); + var flags = BalloonFlags.User; + + if (largeIcon) + flags |= BalloonFlags.LargeIcon; + + ShowBalloonTip(title, message, flags, customIcon.Handle); } }