From 88f575ec08a411b8e24a0965c6fe902035b17910 Mon Sep 17 00:00:00 2001 From: Luis von der Eltz Date: Wed, 28 Oct 2020 11:35:17 +0100 Subject: [PATCH 1/4] Add ElementName to tree node --- .../Diagnostics/ViewModels/TreeNode.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Avalonia.Diagnostics/Diagnostics/ViewModels/TreeNode.cs b/src/Avalonia.Diagnostics/Diagnostics/ViewModels/TreeNode.cs index d9a0d17518..9363c28705 100644 --- a/src/Avalonia.Diagnostics/Diagnostics/ViewModels/TreeNode.cs +++ b/src/Avalonia.Diagnostics/Diagnostics/ViewModels/TreeNode.cs @@ -23,6 +23,8 @@ namespace Avalonia.Diagnostics.ViewModels if (visual is IControl control) { + ElementName = control.Name; + var removed = Observable.FromEventPattern( x => control.DetachedFromLogicalTree += x, x => control.DetachedFromLogicalTree -= x); @@ -61,6 +63,11 @@ namespace Avalonia.Diagnostics.ViewModels private set { RaiseAndSetIfChanged(ref _classes, value); } } + public string ElementName + { + get; + } + public IVisual Visual { get; From 536a193f71fbe4047dbc6753ad39175484410b3a Mon Sep 17 00:00:00 2001 From: Luis von der Eltz Date: Wed, 28 Oct 2020 11:35:39 +0100 Subject: [PATCH 2/4] Change TextBox inside DataGrid selection brush --- .../Diagnostics/Views/ControlDetailsView.xaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Avalonia.Diagnostics/Diagnostics/Views/ControlDetailsView.xaml b/src/Avalonia.Diagnostics/Diagnostics/Views/ControlDetailsView.xaml index b2d3a8bddb..8aad5fffd8 100644 --- a/src/Avalonia.Diagnostics/Diagnostics/Views/ControlDetailsView.xaml +++ b/src/Avalonia.Diagnostics/Diagnostics/Views/ControlDetailsView.xaml @@ -26,6 +26,12 @@ + + + + From baa469b97eb53fdd2b737056aa829839e635203e Mon Sep 17 00:00:00 2001 From: Luis von der Eltz Date: Wed, 28 Oct 2020 11:35:56 +0100 Subject: [PATCH 3/4] Fix default size of panels --- src/Avalonia.Diagnostics/Diagnostics/Views/TreePageView.xaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Avalonia.Diagnostics/Diagnostics/Views/TreePageView.xaml b/src/Avalonia.Diagnostics/Diagnostics/Views/TreePageView.xaml index a1e6ca7d37..2796ef0254 100644 --- a/src/Avalonia.Diagnostics/Diagnostics/Views/TreePageView.xaml +++ b/src/Avalonia.Diagnostics/Diagnostics/Views/TreePageView.xaml @@ -2,7 +2,7 @@ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:vm="clr-namespace:Avalonia.Diagnostics.ViewModels" x:Class="Avalonia.Diagnostics.Views.TreePageView"> - + + From b42433e4956267b34e050db0951a4bc96e92e47a Mon Sep 17 00:00:00 2001 From: Luis von der Eltz Date: Wed, 28 Oct 2020 14:00:19 +0100 Subject: [PATCH 4/4] Increase width a bit more --- src/Avalonia.Diagnostics/Diagnostics/Views/TreePageView.xaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Avalonia.Diagnostics/Diagnostics/Views/TreePageView.xaml b/src/Avalonia.Diagnostics/Diagnostics/Views/TreePageView.xaml index 2796ef0254..98de9b611e 100644 --- a/src/Avalonia.Diagnostics/Diagnostics/Views/TreePageView.xaml +++ b/src/Avalonia.Diagnostics/Diagnostics/Views/TreePageView.xaml @@ -2,7 +2,7 @@ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:vm="clr-namespace:Avalonia.Diagnostics.ViewModels" x:Class="Avalonia.Diagnostics.Views.TreePageView"> - +