New to Telerik UI for WPF? Download free 30-day trial

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