From c9fd1bdaaa201d3500240f1c36851e183bd0683a Mon Sep 17 00:00:00 2001 From: gramps Date: Sun, 30 Aug 2026 20:09:46 -0700 Subject: [PATCH] =?UTF-8?q?refactor:=20extract=20LeftPanel=20out=20of=20Ma?= =?UTF-8?q?inWindow.xaml=20=E2=80=94=20Phase=202,=20Commit=2017?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit LeftPanel.xaml(.cs) takes the Row 1 Col 0 panel (layers + properties editor and the live chat list). All property-editor/chat handlers moved into the control (SourceNameBox edit, AddSourceButton menu, chat autoscroll self-subscribed on Loaded, mirror/clip-shape, remove-source, background capture change/refresh, opacity slider label, list drag-to-reorder, snapshot revert/accept family). Window keeps only shell + routing: ctor wiring (_leftPanel), geometry, hotkeys, taskbar overlay, BackToAbout, Window_PreviewMouseLeftButtonDown (uses _leftPanel.IsClickInside), UpdateSelectionOverlay (calls _leftPanel.OnSelectionChanged). Zero behavior change; build 0 warnings; 246 pass, only the 2 known failures. Docs: ViewModels/index.md Phase 2 tracker updated in same commit. --- Controls/LeftPanel.xaml | 499 +++++++++++++++++++++++++++++++++++++ Controls/LeftPanel.xaml.cs | 310 +++++++++++++++++++++++ MainWindow.xaml | 493 +----------------------------------- MainWindow.xaml.cs | 284 +-------------------- ViewModels/index.md | 3 +- 5 files changed, 816 insertions(+), 773 deletions(-) create mode 100644 Controls/LeftPanel.xaml create mode 100644 Controls/LeftPanel.xaml.cs diff --git a/Controls/LeftPanel.xaml b/Controls/LeftPanel.xaml new file mode 100644 index 0000000..03d252f --- /dev/null +++ b/Controls/LeftPanel.xaml @@ -0,0 +1,499 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -