Interface INotifyIconService
Represents a contract with a service that provides methods for displaying the icon and menu in the tray area.
public interface INotifyIconService
Properties
ContextMenu
Gets or sets the context menu displayed after clicking the icon.
ContextMenu? ContextMenu { get; set; }
Property Value
Icon
Gets or sets the BitmapFrame of the tray icon.
ImageSource? Icon { get; set; }
Property Value
Id
Gets the notify icon id.
int Id { get; }
Property Value
IsRegistered
Gets a value indicating whether the notify icon is registered in the tray.
bool IsRegistered { get; }
Property Value
TooltipText
Gets or sets the ToolTip text displayed when the mouse pointer rests on a notification area icon.
string TooltipText { get; set; }
Property Value
Methods
Register()
Tries to register the Notify Icon in the shell.
bool Register()
Returns
SetParentWindow(Window)
Sets parent window of the tray icon.
void SetParentWindow(Window window)
Parameters
window
Window
Unregister()
Tries to unregister the Notify Icon from the shell.
bool Unregister()