2 instantiations of PanelAccessibleKey
Aspire.Tray.Tests (2)
src\Aspire.Tray\Common\TrayPanelScene.cs (2)
208
public static PanelAccessibleKey For(PanelTargetKey target) =>
new
(target, null);
209
public static PanelAccessibleKey For(string label) =>
new
(null, label);
12 references to PanelAccessibleKey
Aspire.Tray.Tests (12)
src\Aspire.Tray\Common\TrayPanel.cs (2)
1518
_accessible.Add(new(
PanelAccessibleKey
.For(key), role, name, bounds, hit, target, description));
1531
_accessible.Add(new(
PanelAccessibleKey
.For(label), PanelAccessibleRole.Text, text, bounds, chrome ? bounds : bounds.Intersect(_viewport)));
src\Aspire.Tray\Common\TrayPanelScene.cs (3)
208
public static
PanelAccessibleKey
For(PanelTargetKey target) => new(target, null);
209
public static
PanelAccessibleKey
For(string label) => new(null, label);
218
PanelAccessibleKey
Key,
src\Aspire.Tray\Linux\LinuxPanelAccessibility.cs (7)
14
private readonly Dictionary<
PanelAccessibleKey
, Control> _controls = [];
15
private
PanelAccessibleKey
[] _order = [];
20
foreach (
var
key in _controls.Keys.Except(keys).ToArray())
98
foreach (
var
key in keys)
119
if (target is { } key && _controls.TryGetValue(
PanelAccessibleKey
.For(key), out var control))
144
private void Remove(
PanelAccessibleKey
key)
159
foreach (
var
key in _controls.Keys.ToArray())