1 write to _panel
aspire-tray (1)
TrayApplication.Panel.cs (1)
150_panel = new TrayPanel(controller.State, GetPanelPalette()) { FileManagerName = "File Explorer", QuitVerb = "Exit" };
52 references to _panel
aspire-tray (52)
TrayApplication.Actions.cs (2)
134&& _panel is not null) 136ApplyPanelResponse(_panel.ConfirmRemoveMissing(recent));
TrayApplication.NativeSmoke.cs (11)
92var panel = _panel!; 125TrayPanelSceneJson.Write(export, _panel!.Scene, "Windows", Environment.GetEnvironmentVariable("ASPIRE_TRAY_SMOKE_PREVIEW_APPEARANCE") ?? "system", 198return _panel!; 241=> ApplyPanelResponse(_panel!.Invoke(FindPanelTargetForSmoke(kind, host).Key)); 255NativeSmokeHarness.Require(_panel!.ActionsRow is null, "Picking an action must close the action list."); 265var panel = _panel!; 329NativeSmokeHarness.Require(_panelVisible && (_panel!.FocusedTarget is not null) == keyboard, 340NativeSmokeHarness.Require(!_panel!.IsSettingsOpen, "Settings opened unexpectedly."); 361NativeSmokeHarness.Require(_panel.IsSettingsOpen, "Ctrl+comma must open the Settings view in the panel."); 363NativeSmokeHarness.Require(!_panel.IsSettingsOpen && _panelVisible, "Escape must leave the Settings view and keep the panel open."); 398if (_panel is { IsSettingsOpen: true })
TrayApplication.Panel.cs (25)
70_panel!.OpenInApplications = _installedApplications.Select(application => application.Title).ToArray(); 71_panel.Update(controller.State); 72_panel.Reset(); 75_panel.FocusFirst(); 177_panel!.Palette = GetPanelPalette(); 183_panel!.MaxHeight = Math.Min(TrayPanel.DefaultMaxHeight, (work.Bottom - work.Top - 2 * margin) / scale); 185var height = (int)Math.Round(_panel.Scene.Height * scale); 250var tooltips = _panel!.Scene.Targets.Where(target => target.Tooltip is not null && !target.HitBounds.IsEmpty) 300if (!_panelVisible || _panel is null || (ReferenceEquals(state, _panel.State) && !_panelPaletteDirty)) 304if (_panel.Update(state) || _panelPaletteDirty) 315if (_panelPaletteDirty || Math.Abs(rect.Bottom - rect.Top - Math.Round(_panel!.Scene.Height * PanelScale)) > 0.5) 370ApplyPanelResponse(_panel!.ShowSettings(PanelSettings.Read(startupSettings, _interactiveSmoke, LogStartupFailure))); 373ApplyPanelResponse(_panel!.UpdateSettings( 432if (dc == 0 || _panel is null) 468var scene = _panel!.Scene; 469var palette = _panel.Palette; 847if (_panel is null) 871ApplyPanelResponse(_panel.PointerMoved(x, y)); 875ApplyPanelResponse(_panel.PointerLeft()); 879ApplyPanelResponse(_panel.PointerDown(x, y)); 883ApplyPanelResponse(_panel.PointerUp(x, y)); 888ApplyPanelResponse(_panel.Scroll(delta / 120.0 * WheelStep)); 892if (!_panel.IsSettingsOpen) 912ApplyPanelResponse(_panel.Key(value));
TrayApplication.PanelAutomation.cs (14)
56if (_panel is null || _automationRoot is null) 60var scene = _panel.Scene; 104_automationFocus = _panel.FocusedTarget; 140if (_panel.FocusedTarget != _automationFocus) 142_automationFocus = _panel.FocusedTarget; 165=> _panel?.FocusedTarget is { } focus && _automationNodes.TryGetValue(PanelAccessibleKey.For(focus), out var node) ? node : null; 169if (_panel is null || !_panelVisible) 202if (_panel is not null && _panelVisible && _automationNodesById.TryGetValue(id, out var node) && node.Element.Target is { } target) 204ApplyPanelResponse(_panel.Invoke(target.Key)); 328private bool IsFocused => Element.Target is { } target && owner._panel?.FocusedTarget == target.Key; 347if (Removed || owner._panel is null) 419if (Element.Target is { Enabled: true } target && owner._panel is { } panel && owner._panelVisible) 443owner.ApplyPanelResponse(owner._panel!.Invoke(Element.Target!.Key)); 454if (Removed || owner._panel is null)