2 instantiations of PanelAccessibleKey
aspire-tray (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);
8 references to PanelAccessibleKey
aspire-tray (8)
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,
TrayApplication.PanelAutomation.cs (3)
14
/// <see cref="
PanelAccessibleKey
"/> across redraws so their runtime ids stay stable, and every
24
private readonly Dictionary<
PanelAccessibleKey
, PanelAutomationNode> _automationNodes = [];
165
=> _panel?.FocusedTarget is { } focus && _automationNodes.TryGetValue(
PanelAccessibleKey
.For(focus), out var node) ? node : null;