From 948dd082141be23cd1baec421ec4d11206837d06 Mon Sep 17 00:00:00 2001 From: gramps Date: Thu, 8 Oct 2026 08:40:23 -0700 Subject: [PATCH] =?UTF-8?q?Zoom:=20dims=20never=20shade=20the=20box=20?= =?UTF-8?q?=E2=80=94=20move=20the=20dim=20overlay=20above=20CanvasGrid=20(?= =?UTF-8?q?Unit:=20zoom=20shading=20fix)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Creator's final zoom correction: as the box is dragged, its capture region slides under the dim rectangles and the box picks up the 55% black "div shading" inside itself, because the VisualBrush samples the whole CanvasGrid and DimRects lived inside CanvasGrid. The captured area must stay clear regardless of box position. - PreviewPane.xaml: the DimRects ItemsControl is now a SIBLING of CanvasGrid (above the composed content, below the ZoomBox), never a descendant — the zoom source is shading-free by construction. - ZoomBoxInteractionTests: structural invariant — DimRectsLayer is a direct child of PreviewCanvas (not inside CanvasGrid) and renders below the ZoomBox. - Side effect (correctness, not a bug): quality dims now also sedate the global overlays outside the crop, matching "chrome outside the crop is dimmed". --- Controls/PreviewPane.xaml | 47 ++++++++++--------- HANDOFF.md | 60 +++++++++++-------------- ai.md | 5 +++ ytLive.Tests/ZoomBoxInteractionTests.cs | 13 ++++++ 4 files changed, 70 insertions(+), 55 deletions(-) diff --git a/Controls/PreviewPane.xaml b/Controls/PreviewPane.xaml index 28d91b5..1f36bdf 100644 --- a/Controls/PreviewPane.xaml +++ b/Controls/PreviewPane.xaml @@ -316,26 +316,6 @@ HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="0,0,-13,-13"/> - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + +