TrayIcon
Namespace NetWiv · Assembly NetWiv.Core
public sealed class TrayIcon : ResourceProperties
Section titled “Properties”public string Id { get; }Methods
Section titled “Methods”GetByIdAsync
Section titled “GetByIdAsync”public static Task<TrayIcon> GetByIdAsync(AppHandle app, string id, CancellationToken cancellationToken = null);NewAsync
Section titled “NewAsync”public static Task<TrayIcon> NewAsync(AppHandle app, TrayIconOptions options = null, Channel<TrayIconEvent> handler = null, CancellationToken cancellationToken = null);RemoveByIdAsync
Section titled “RemoveByIdAsync”public static Task RemoveByIdAsync(AppHandle app, string id, CancellationToken cancellationToken = null);SetIconAsTemplateAsync
Section titled “SetIconAsTemplateAsync”public Task SetIconAsTemplateAsync(bool asTemplate, CancellationToken cancellationToken = null);SetIconAsync
Section titled “SetIconAsync”public Task SetIconAsync(Image icon, CancellationToken cancellationToken = null);SetIconWithTemplateAsync
Section titled “SetIconWithTemplateAsync”public Task SetIconWithTemplateAsync(Image icon, bool asTemplate, CancellationToken cancellationToken = null);SetMenuAsync
Section titled “SetMenuAsync”public Task SetMenuAsync(MenuItemBase menu, CancellationToken cancellationToken = null);SetShowMenuOnLeftClickAsync
Section titled “SetShowMenuOnLeftClickAsync”public Task SetShowMenuOnLeftClickAsync(bool onLeft, CancellationToken cancellationToken = null);SetTempDirectoryPathAsync
Section titled “SetTempDirectoryPathAsync”public Task SetTempDirectoryPathAsync(string path, CancellationToken cancellationToken = null);SetTitleAsync
Section titled “SetTitleAsync”public Task SetTitleAsync(string title, CancellationToken cancellationToken = null);SetTooltipAsync
Section titled “SetTooltipAsync”public Task SetTooltipAsync(string tooltip, CancellationToken cancellationToken = null);SetVisibleAsync
Section titled “SetVisibleAsync”public Task SetVisibleAsync(bool visible, CancellationToken cancellationToken = null);