diff --git a/src/PlanViewer.App/Controls/PlanViewerControl.axaml b/src/PlanViewer.App/Controls/PlanViewerControl.axaml
index b050af6..f632500 100644
--- a/src/PlanViewer.App/Controls/PlanViewerControl.axaml
+++ b/src/PlanViewer.App/Controls/PlanViewerControl.axaml
@@ -64,10 +64,10 @@
-
+
-
+
+
@@ -96,6 +100,10 @@
Foreground="{DynamicResource ForegroundBrush}"
Margin="0,0,0,4"/>
+
diff --git a/src/PlanViewer.App/Controls/PlanViewerControl.axaml.cs b/src/PlanViewer.App/Controls/PlanViewerControl.axaml.cs
index 90d0b97..0c4b1a0 100644
--- a/src/PlanViewer.App/Controls/PlanViewerControl.axaml.cs
+++ b/src/PlanViewer.App/Controls/PlanViewerControl.axaml.cs
@@ -2385,7 +2385,15 @@ void AddRow(string label, string value)
if (!string.IsNullOrEmpty(statement.StatementOptmEarlyAbortReason))
AddRow("Early abort", statement.StatementOptmEarlyAbortReason);
- RuntimeSummaryContent.Children.Add(grid);
+ if (grid.Children.Count > 0)
+ {
+ RuntimeSummaryContent.Children.Add(grid);
+ RuntimeSummaryEmpty.IsVisible = false;
+ }
+ else
+ {
+ RuntimeSummaryEmpty.IsVisible = true;
+ }
ShowServerContext();
}
@@ -2394,10 +2402,13 @@ private void ShowServerContext()
ServerContextContent.Children.Clear();
if (_serverMetadata == null)
{
- ServerContextBorder.IsVisible = false;
+ ServerContextEmpty.IsVisible = true;
+ ServerContextBorder.IsVisible = true;
return;
}
+ ServerContextEmpty.IsVisible = false;
+
var m = _serverMetadata;
var fgColor = "#E4E6EB";
diff --git a/src/PlanViewer.App/Controls/QuerySessionControl.axaml b/src/PlanViewer.App/Controls/QuerySessionControl.axaml
index 7262b7e..be49eb2 100644
--- a/src/PlanViewer.App/Controls/QuerySessionControl.axaml
+++ b/src/PlanViewer.App/Controls/QuerySessionControl.axaml
@@ -33,12 +33,12 @@
ToolTip.Tip="Capture estimated plan without executing (Ctrl+L)"/>
-
-
-
-