Class NotifyIconService
Base implementation of the notify icon service.
public class NotifyIconService : INotifyIconService
- Inheritance
-
NotifyIconService
- Implements
- Inherited Members
Constructors
NotifyIconService()
public NotifyIconService()
Properties
ContextMenu
Gets or sets the context menu displayed after clicking the icon.
public ContextMenu? ContextMenu { get; set; }
Property Value
Icon
Gets or sets the BitmapFrame of the tray icon.
public ImageSource? Icon { get; set; }
Property Value
Id
Gets the notify icon id.
public int Id { get; }
Property Value
IsRegistered
Gets a value indicating whether the notify icon is registered in the tray.
public bool IsRegistered { get; }
Property Value
ParentWindow
public Window ParentWindow { get; }
Property Value
TooltipText
Gets or sets the ToolTip text displayed when the mouse pointer rests on a notification area icon.
public string TooltipText { get; set; }
Property Value
Methods
OnLeftClick()
This virtual method is called when the user clicks the left mouse button on the tray icon.
protected virtual void OnLeftClick()
OnLeftDoubleClick()
This virtual method is called when the user double-clicks the left mouse button on the tray icon.
protected virtual void OnLeftDoubleClick()
OnMiddleClick()
This virtual method is called when the user clicks the middle mouse button on the tray icon.
protected virtual void OnMiddleClick()
OnMiddleDoubleClick()
This virtual method is called when the user double-clicks the middle mouse button on the tray icon.
protected virtual void OnMiddleDoubleClick()
OnRightClick()
This virtual method is called when the user clicks the right mouse button on the tray icon.
protected virtual void OnRightClick()
OnRightDoubleClick()
This virtual method is called when the user double-clicks the right mouse button on the tray icon.
protected virtual void OnRightDoubleClick()
Register()
Tries to register the Notify Icon in the shell.
public bool Register()
Returns
SetParentWindow(Window)
Sets parent window of the tray icon.
public void SetParentWindow(Window parentWindow)
Parameters
parentWindow
Window
Unregister()
Tries to unregister the Notify Icon from the shell.
public bool Unregister()