From ef0e29e0089a4185357589fe64105f8b5285f71c Mon Sep 17 00:00:00 2001 From: Erik Darling <2136037+erikdarlingdata@users.noreply.github.com> Date: Thu, 26 Feb 2026 20:46:19 -0500 Subject: [PATCH] Add sortable statement DataGrid and canvas panning to plan viewer Replace the ComboBox statement selector with a sortable DataGrid panel on the left side. Columns: #, Query, CPU, Elapsed, UDF (conditional), Est. Cost (for estimated plans), Critical, Warnings. Uses SortMemberPath for proper numeric sorting on formatted display columns. Add click-and-drag canvas panning via Preview mouse events with hit testing to distinguish node clicks from empty canvas drags. Ported from plan-b Avalonia implementation, adapted for WPF. Co-Authored-By: Claude Opus 4.6 --- Dashboard/Controls/PlanViewerControl.xaml | 81 +++++- Dashboard/Controls/PlanViewerControl.xaml.cs | 275 ++++++++++++++++--- 2 files changed, 311 insertions(+), 45 deletions(-) diff --git a/Dashboard/Controls/PlanViewerControl.xaml b/Dashboard/Controls/PlanViewerControl.xaml index c5e06082..a3610c9e 100644 --- a/Dashboard/Controls/PlanViewerControl.xaml +++ b/Dashboard/Controls/PlanViewerControl.xaml @@ -27,13 +27,10 @@