Table of Contents

Interface ITrayIconImpl

Namespace
Avalonia.Platform
Assembly
Avalonia.Controls.dll
[Unstable]
public interface ITrayIconImpl : IDisposable
Inherited Members

Properties

MenuExporter

Gets the MenuExporter to allow native menus to be exported to the TrayIcon.

INativeMenuExporter? MenuExporter { get; }

Property Value

INativeMenuExporter

OnClicked

Gets or Sets the Action that is called when the TrayIcon is clicked.

Action? OnClicked { get; set; }

Property Value

Action

Methods

SetIcon(IWindowIconImpl?)

Sets the icon of this tray icon.

void SetIcon(IWindowIconImpl? icon)

Parameters

icon IWindowIconImpl

SetIsVisible(bool)

Sets if the tray icon is visible or not.

void SetIsVisible(bool visible)

Parameters

visible bool

SetToolTipText(string?)

Sets the icon of this tray icon.

void SetToolTipText(string? text)

Parameters

text string