9 references to FocusedTarget
aspire-tray (9)
TrayApplication.NativeSmoke.cs (4)
275
NativeSmokeHarness.Require(panel.
FocusedTarget
== items[0].Key, "Down must move from the More button into the action list.");
287
NativeSmokeHarness.Require(panel.
FocusedTarget
== items[0].Key && !panel.Scene.Targets.Any(target => target.Kind == PanelTargetKind.OpenIn),
291
NativeSmokeHarness.Require(panel.ActionsRow is null && _panelVisible && panel.
FocusedTarget
?.Kind == PanelTargetKind.More,
329
NativeSmokeHarness.Require(_panelVisible && (_panel!.
FocusedTarget
is not null) == keyboard,
TrayApplication.PanelAutomation.cs (5)
104
_automationFocus = _panel.
FocusedTarget
;
140
if (_panel.
FocusedTarget
!= _automationFocus)
142
_automationFocus = _panel.
FocusedTarget
;
165
=> _panel?.
FocusedTarget
is { } focus && _automationNodes.TryGetValue(PanelAccessibleKey.For(focus), out var node) ? node : null;
328
private bool IsFocused => Element.Target is { } target && owner._panel?.
FocusedTarget
== target.Key;