src\Aspire.Tray\Common\TrayPanel.cs (28)
769Add(ListItemKind.Empty, EmptyStateHeight, PanelSection.None, null);
777void Add(ListItemKind kind, double height, PanelSection section, AppHostMenuItem? host, PanelTargetKind target = default)
793Add(ListItemKind.Confirm, ConfirmHeight, section, null);
797Add(ListItemKind.SectionHeader, SectionHeaderHeight, section, null);
807Add(confirming ? ListItemKind.Confirm : ListItemKind.Row, confirming ? ConfirmHeight : RowHeight, section, host);
811Add(ListItemKind.Actions, count * ActionItemHeight + 2 * ActionListPadding + ActionListGap, section, host);
818Add(ListItemKind.SectionHeader, SectionHeaderHeight, PanelSection.None, null, PanelTargetKind.LaunchAtSignIn);
819Add(ListItemKind.SettingsToggle, SettingsRowHeight, PanelSection.None, null, PanelTargetKind.LaunchAtSignIn);
820Add(ListItemKind.SectionHeader, SectionHeaderHeight, PanelSection.None, null, PanelTargetKind.Documentation);
821Add(ListItemKind.About, AboutHeight, PanelSection.None, null);
877case ListItemKind.Empty:
880case ListItemKind.SectionHeader when _settings is not null:
887case ListItemKind.SectionHeader:
890case ListItemKind.Row:
894case ListItemKind.Confirm:
897case ListItemKind.Actions:
900case ListItemKind.SettingsToggle:
903case ListItemKind.About:
996case ListItemKind.Row:
1008case ListItemKind.SectionHeader when item.Section == PanelSection.Recent && _settings is null:
1012case ListItemKind.SectionHeader:
1015case ListItemKind.Actions:
1030case ListItemKind.SettingsToggle:
1033case ListItemKind.Confirm:
1039case ListItemKind.About:
1046case ListItemKind.Empty:
1629private readonly record struct ListItem(ListItemKind Kind, double Y, double Height, PanelSection Section, AppHostMenuItem? Host,