Table of Contents

Interface INotifyIconService

Namespace
Wpf.Ui.Tray
Assembly
Wpf.Ui.Tray.dll

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

ContextMenu

Icon

Gets or sets the BitmapFrame of the tray icon.

ImageSource? Icon { get; set; }

Property Value

ImageSource

Id

Gets the notify icon id.

int Id { get; }

Property Value

int

IsRegistered

Gets a value indicating whether the notify icon is registered in the tray.

bool IsRegistered { get; }

Property Value

bool

TooltipText

Gets or sets the ToolTip text displayed when the mouse pointer rests on a notification area icon.

string TooltipText { get; set; }

Property Value

string

Methods

Register()

Tries to register the Notify Icon in the shell.

bool Register()

Returns

bool

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()

Returns

bool