public sealed record DesktopStatusIconState : IEquatable<DesktopStatusIconState> Everything a status icon shows. Each IDesktopStatusIcon.ShowAsync replaces the whole state.
Constructors
DesktopStatusIconState
public DesktopStatusIconState(DesktopIcon Icon, string Title) Everything a status icon shows. Each IDesktopStatusIcon.ShowAsync replaces the whole state.
Properties
AttentionIcon
public DesktopIcon? AttentionIcon { get; init; } The icon shown while DesktopStatusIconState.Status is DesktopStatusIconStatus.NeedsAttention; the normal icon otherwise.
LayoutDirection
public DesktopLayoutDirection LayoutDirection { get; init; } The direction the menu lays out in: DesktopLayoutDirection.Default, the default, keeps the platform's.
Remarks
Windows mirrors the menu for DesktopLayoutDirection.RightToLeft and orders its text right to left. Linux and macOS ignore it: their desktops lay menus out for the user's language.
Menu
public ImmutableArray<DesktopMenuEntry> Menu { get; init; } The menu, opened with the secondary button. An empty menu shows none.
Remarks
Items are unique by command id and DesktopMenuItem.CommandParameter, so one command id can serve several items with different parameters; submenus nest at most four deep and the menu has at most 256 entries. Each DesktopMenuItem shows its DesktopMenuItem.IsEnabled and DesktopMenuItem.IsChecked; DesktopMenuItem.Shortcut and DesktopMenu.Role are ignored.
Title
public string Title { get; init; } No documentation.
Tooltip
public string? Tooltip { get; init; } Text shown below DesktopStatusIconState.Title in the tooltip.