diff --git a/src/PlanViewer.App/Controls/QueryStoreGridControl.axaml b/src/PlanViewer.App/Controls/QueryStoreGridControl.axaml index 29555d1..29e8d0f 100644 --- a/src/PlanViewer.App/Controls/QueryStoreGridControl.axaml +++ b/src/PlanViewer.App/Controls/QueryStoreGridControl.axaml @@ -133,6 +133,7 @@ Background="{DynamicResource BackgroundDarkBrush}" BorderThickness="0" Sorting="ResultsGrid_Sorting" + DoubleTapped="ResultsGrid_DoubleTapped" ScrollViewer.HorizontalScrollBarVisibility="Auto"> diff --git a/src/PlanViewer.App/Controls/QueryStoreGridControl.axaml.cs b/src/PlanViewer.App/Controls/QueryStoreGridControl.axaml.cs index edbd75b..bb30ea2 100644 --- a/src/PlanViewer.App/Controls/QueryStoreGridControl.axaml.cs +++ b/src/PlanViewer.App/Controls/QueryStoreGridControl.axaml.cs @@ -5,9 +5,12 @@ using System.Linq; using System.Runtime.CompilerServices; using System.Threading; +using Avalonia; using Avalonia.Controls; using Avalonia.Controls.Primitives; +using Avalonia.Input; using Avalonia.Interactivity; +using Avalonia.VisualTree; using Avalonia.Media; using PlanViewer.Core.Interfaces; using PlanViewer.Core.Models; @@ -758,6 +761,21 @@ private void ExpandRow_Click(object? sender, RoutedEventArgs e) { if (sender is not Button btn) return; if (btn.DataContext is not QueryStoreRow row) return; + ToggleRowExpansion(row); + } + + private void ResultsGrid_DoubleTapped(object? sender, TappedEventArgs e) + { + if (e.Source is not Visual v) return; + if (v.FindAncestorOfType