Events

Here are the events exposed by the RadNotifyIcon control:

  • 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. Its properties are listed in the CustomTooltipOpening description.
  • 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.
  • 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.

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.
  • 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.
  • 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.

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.
  • 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.
  • 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.
  • 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.
  • 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.
  • 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.

See Also

  • [Getting Started]
In this article
Not finding the help you need? Improve this article