Events
Here are the events exposed by the RadNotifyIcon control:
Tooltip
-
PreviewTooltipOpened: Occurs when a styled tooltip is about to be opened. The event handler receives two arguments:
The sender argument contains the RadNotifyIcon. This argument is of type object, but can be cast to the RadNotifyIcon type.
A CancelEventArgs object. It allows for preventing the opening by setting the Cancel property.
-
TooltipOpened: Occurs when a styled tooltip is opened. The event handler receives two arguments:
- The sender argument contains the RadNotifyIcon. This argument is of type object, but can be cast to the RadNotifyIcon type.
- An EventArgs object.
Popup
-
PopupOpening: Occurs when a popup is about to be opened. The event handler receives two arguments:
- The sender argument contains the RadNotifyIcon. This argument is of type object, but can be cast to the RadNotifyIcon type.
- A NotifyIconPopupOpeningEventArgs object.
- The sender argument contains the RadNotifyIcon. This argument is of type object, but can be cast to the RadNotifyIcon type.
-
PopupOpened: Occurs when a popup is opened. The event handler receives two arguments:
- The sender argument contains the RadNotifyIcon. This argument is of type object, but can be cast to the RadNotifyIcon type.
- An EventArgs object.
ContextMenu
-
TrayContextMenuOpening: Occurs when a context menu is about to be opened. The event handler receives two arguments:
- The sender argument contains the RadNotifyIcon. This argument is of type object, but can be cast to the RadNotifyIcon type.
- A CancelEventArgs object. It allows for preventing the opening by setting the Cancel property.
- The sender argument contains the RadNotifyIcon. This argument is of type object, but can be cast to the RadNotifyIcon type.
-
TrayContextMenuOpened: Occurs when a context menu is opened. The event handler receives two arguments:
- The sender argument contains the RadNotifyIcon. This argument is of type object, but can be cast to the RadNotifyIcon type.
- An EventArgs object.
- The sender argument contains the RadNotifyIcon. This argument is of type object, but can be cast to the RadNotifyIcon type.
Balloon
-
BalloonTipShown: Occurs when a balloon notification is shown. The event handler receives two arguments:
- The sender argument contains the RadNotifyIcon. This argument is of type object, but can be cast to the RadNotifyIcon type.
- An EventArgs object.
- The sender argument contains the RadNotifyIcon. This argument is of type object, but can be cast to the RadNotifyIcon type.
-
BalloonTipClicked: Occurs when a balloon notification is clicked. The event handler receives two arguments:
- The sender argument contains the RadNotifyIcon. This argument is of type object, but can be cast to the RadNotifyIcon type.
- An EventArgs object.
- The sender argument contains the RadNotifyIcon. This argument is of type object, but can be cast to the RadNotifyIcon type.
-
BalloonTipClosed: Occurs when a balloon notification is closed. The event handler receives two arguments:
- The sender argument contains the RadNotifyIcon. This argument is of type object, but can be cast to the RadNotifyIcon type.
- An EventArgs object.
- The sender argument contains the RadNotifyIcon. This argument is of type object, but can be cast to the RadNotifyIcon type.
Tray Icon Events
-
TrayIconMouseClick: Occurs when the user clicks on the notify icon. The event handler receives two arguments:
- The sender argument contains the RadNotifyIcon. This argument is of type object, but can be cast to the RadNotifyIcon type.
- A MouseButtonEventArgs object.
- The sender argument contains the RadNotifyIcon. This argument is of type object, but can be cast to the RadNotifyIcon type.
-
TrayIconMouseDoubleClick: Occurs when the user double clicks on the notify icon. The event handler receives two arguments:
- The sender argument contains the RadNotifyIcon. This argument is of type object, but can be cast to the RadNotifyIcon type.
- A MouseButtonEventArgs object.
- The sender argument contains the RadNotifyIcon. This argument is of type object, but can be cast to the RadNotifyIcon type.
-
TrayIconMouseMove: Occurs when the user moves the mouse over the notify icon. The event handler receives two arguments:
- The sender argument contains the RadNotifyIcon. This argument is of type object, but can be cast to the RadNotifyIcon type.
- A MouseButtonEventArgs object.
- The sender argument contains the RadNotifyIcon. This argument is of type object, but can be cast to the RadNotifyIcon type.
-
TrayIconMouseDown: Occurs when the user presses a mouse button over the notify icon. The event handler receives two arguments:
- The sender argument contains the RadNotifyIcon. This argument is of type object, but can be cast to the RadNotifyIcon type.
- A MouseButtonEventArgs object.
- The sender argument contains the RadNotifyIcon. This argument is of type object, but can be cast to the RadNotifyIcon type.
-
TrayIconMouseUp: Occurs when the user releases a mouse button over the notify icon. The event handler receives two arguments:
- The sender argument contains the RadNotifyIcon. This argument is of type object, but can be cast to the RadNotifyIcon type.
- A MouseButtonEventArgs object.
- The sender argument contains the RadNotifyIcon. This argument is of type object, but can be cast to the RadNotifyIcon type.
-
Selected: Occurs when the user selects a RadNotifyIcon in the Windows notification area. The event handler receives two arguments:
- The sender argument contains the RadNotifyIcon. This argument is of type object, but can be cast to the RadNotifyIcon type.
- A NotifyIconSelectedEventArgs object. It exposes the IsKeyboardSelection property, which indicates whether the RadNotifyIcon was selected with the keyboard. If false, the selection was done with the mouse.
- The sender argument contains the RadNotifyIcon. This argument is of type object, but can be cast to the RadNotifyIcon type.
See Also
- [Getting Started]