1 instantiation of TrayPanel
aspire-tray (1)
TrayApplication.Panel.cs (1)
150
_panel = new
TrayPanel
(controller.State, GetPanelPalette()) { FileManagerName = "File Explorer", QuitVerb = "Exit" };
21 references to TrayPanel
aspire-tray (21)
src\Aspire.Tray\Common\TrayPanelScene.cs (5)
92
/// Draws the icon of an installed application, one of <see cref="
TrayPanel
.OpenInApplications"/>,
129
/// <see cref="
TrayPanel
.OpenInApplications"/>.
275
/// <see cref="
TrayPanel
.ConfirmRemoveMissing"/> instead of showing a dialog.
280
/// <see cref="
TrayPanel
.OpenInApplications"/>.
300
/// <see cref="
TrayPanel
.ShowSettings"/> to switch the panel to its Settings view.
TrayApplication.NativeSmoke.cs (10)
92
var
panel = _panel!;
191
private
TrayPanel
EnsurePanelForSmoke()
201
internal
TrayPanel
PanelForSmoke => EnsurePanelForSmoke();
206
var
panel = EnsurePanelForSmoke();
265
var
panel = _panel!;
374
var
panel = EnsurePanelForSmoke();
432
var
panel = EnsurePanelForSmoke();
446
NativeSmokeHarness.Require(panel.Scene.Accessibility.Single(element => element.Key.Label == "header.status").Bounds.CenterY ==
TrayPanel
.HeaderHeight / 2
447
&&
TrayPanel
.HeaderHeight ==
TrayPanel
.FooterHeight, "The header must be one line, as tall as the footer.");
TrayApplication.Panel.cs (5)
12
/// Layout, glyphs and interaction live in the shared <see cref="
TrayPanel
"/>; this part hosts it
24
private
TrayPanel
? _panel;
183
_panel!.MaxHeight = Math.Min(
TrayPanel
.DefaultMaxHeight, (work.Bottom - work.Top - 2 * margin) / scale);
184
var width = (int)Math.Round(
TrayPanel
.Width * scale);
217
var diameter = (int)Math.Round(2 *
TrayPanel
.CornerRadius * scale);
TrayApplication.PanelAutomation.cs (1)
15
/// action goes through <see cref="
TrayPanel
"/>, exactly like a click or a key press.