@@ -34,8 +34,6 @@ public class NotifyIcon : FrameworkElement, IDisposable
3434
3535 private IconHandle _iconHandle ;
3636
37- private const int WmTrayMouseMessage = InteropValues . WM_USER + 1024 ;
38-
3937 private string _windowClassName ;
4038
4139 private int _wmTaskbarCreated ;
@@ -494,7 +492,7 @@ private void UpdateIcon(bool showIconInTray, bool isTransparent = false)
494492 _isTransparent = isTransparent ;
495493 var data = new InteropValues . NOTIFYICONDATA
496494 {
497- uCallbackMessage = WmTrayMouseMessage ,
495+ uCallbackMessage = InteropValues . WM_TRAYMOUSEMESSAGE ,
498496 uFlags = InteropValues . NIF_MESSAGE | InteropValues . NIF_ICON | InteropValues . NIF_TIP ,
499497 hWnd = _messageWindowHandle ,
500498 uID = _id ,
@@ -578,7 +576,7 @@ private IntPtr Callback(IntPtr hWnd, int msg, IntPtr wparam, IntPtr lparam)
578576 }
579577 break ;
580578 case InteropValues . NIN_BALLOONUSERCLICK :
581- RaiseEvent ( new RoutedEventArgs ( BalloonTipClickedEvent ) ) ;
579+ RaiseEvent ( new RoutedEventArgs ( BalloonTipClickEvent ) ) ;
582580 break ;
583581 }
584582 }
@@ -676,14 +674,14 @@ public event RoutedEventHandler MouseDoubleClick
676674 remove => RemoveHandler ( MouseDoubleClickEvent , value ) ;
677675 }
678676
679- public static readonly RoutedEvent BalloonTipClickedEvent =
680- EventManager . RegisterRoutedEvent ( "BalloonTipClicked " , RoutingStrategy . Bubble ,
681- typeof ( RoutedEventHandler ) , typeof ( NotifyIcon ) ) ;
677+ public static readonly RoutedEvent BalloonTipClickEvent =
678+ EventManager . RegisterRoutedEvent ( "BalloonTipClick " , RoutingStrategy . Bubble , typeof ( RoutedEventHandler ) ,
679+ typeof ( NotifyIcon ) ) ;
682680
683- public event RoutedEventHandler BalloonTipClicked
681+ public event RoutedEventHandler BalloonTipClick
684682 {
685- add => AddHandler ( BalloonTipClickedEvent , value ) ;
686- remove => RemoveHandler ( BalloonTipClickedEvent , value ) ;
683+ add => AddHandler ( BalloonTipClickEvent , value ) ;
684+ remove => RemoveHandler ( BalloonTipClickEvent , value ) ;
687685 }
688686
689687 private void UpdateDataContext ( FrameworkElement target , object oldValue , object newValue )
0 commit comments