From 7c41d8874e79c13beef09f53e74ef2b9f3ea4418 Mon Sep 17 00:00:00 2001 From: Avishai Dernis Date: Wed, 7 Jan 2026 10:00:51 +0200 Subject: [PATCH 1/3] Added tooltips to TabViewItem template --- XamlStudio/Views/MainPage.xaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/XamlStudio/Views/MainPage.xaml b/XamlStudio/Views/MainPage.xaml index e6cfd11..38f0016 100644 --- a/XamlStudio/Views/MainPage.xaml +++ b/XamlStudio/Views/MainPage.xaml @@ -241,7 +241,7 @@ - + From a04a38fe5590daf89af276026f1959f1c578beb6 Mon Sep 17 00:00:00 2001 From: Avishai Dernis Date: Wed, 7 Jan 2026 10:09:43 +0200 Subject: [PATCH 2/3] Added tooltips in the Explorer --- XamlStudio/Views/Explorer.xaml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/XamlStudio/Views/Explorer.xaml b/XamlStudio/Views/Explorer.xaml index b21b6c6..98016e6 100644 --- a/XamlStudio/Views/Explorer.xaml +++ b/XamlStudio/Views/Explorer.xaml @@ -31,7 +31,8 @@ + Text="{x:Bind ((storage:StorageFile)Content).Name}" + ToolTipService.ToolTip="{x:Bind ((storage:StorageFile)Content).Name}" /> @@ -43,7 +44,8 @@ + Text="{x:Bind ((storage:StorageFile)Content).Name}" + ToolTipService.ToolTip="{x:Bind ((storage:StorageFile)Content).Name}" /> @@ -55,7 +57,8 @@ + Text="{x:Bind ((storage:StorageFile)Content).Name}" + ToolTipService.ToolTip="{x:Bind ((storage:StorageFile)Content).Name}" /> + Text="{x:Bind ((storage:StorageFile)Content).Name}" + ToolTipService.ToolTip="{x:Bind ((storage:StorageFile)Content).Name}" /> @@ -84,7 +88,8 @@ + Text="{x:Bind ((storage:StorageFolder)Content).DisplayName}" + ToolTipService.ToolTip="{x:Bind ((storage:StorageFolder)Content).DisplayName}" /> @@ -149,7 +154,8 @@ + Text="{Binding Title}" + ToolTipService.ToolTip="{Binding Title}"/> Date: Thu, 8 Jan 2026 00:06:52 +0200 Subject: [PATCH 3/3] Adjusted tooltips to use path and filename TextBlocks to trim --- XamlStudio/Models/FileBackedDocument.cs | 10 ++++++++-- XamlStudio/Models/XamlDocument.cs | 2 +- XamlStudio/Views/Explorer.xaml | 3 ++- XamlStudio/Views/MainPage.xaml | 4 ++-- 4 files changed, 13 insertions(+), 6 deletions(-) diff --git a/XamlStudio/Models/FileBackedDocument.cs b/XamlStudio/Models/FileBackedDocument.cs index e2ffc8e..f88d9d7 100644 --- a/XamlStudio/Models/FileBackedDocument.cs +++ b/XamlStudio/Models/FileBackedDocument.cs @@ -25,10 +25,16 @@ public abstract partial class FileBackedDocument : ObservableObject /// public string Title { - get { return (HasChanged ? "*" : "") + field; } - set { SetProperty(ref field, value.Trim('*')); } + get => (HasChanged ? "*" : "") + field; + set => SetProperty(ref field, value.Trim('*')); } + /// + /// Gets the file path as displayed for tooltips + /// + [JsonIgnore] + public string DisplayPath => BackingFile?.Path ?? Title; + //// TODO: This is effectively private, but needs to be serialized, investigate options when switching away from Newtonsoft public string StorageToken { get; set; } diff --git a/XamlStudio/Models/XamlDocument.cs b/XamlStudio/Models/XamlDocument.cs index c3322f5..066bd6f 100644 --- a/XamlStudio/Models/XamlDocument.cs +++ b/XamlStudio/Models/XamlDocument.cs @@ -38,7 +38,7 @@ public sealed partial class XamlDocument : FileBackedDocument public partial DocumentState State { get; set; } = new DocumentState(); [JsonIgnore] - public string DisplayName { get { return BackingFile.DisplayName; } } + public string DisplayName => BackingFile?.DisplayName; internal XamlDocument() { diff --git a/XamlStudio/Views/Explorer.xaml b/XamlStudio/Views/Explorer.xaml index 98016e6..95b813e 100644 --- a/XamlStudio/Views/Explorer.xaml +++ b/XamlStudio/Views/Explorer.xaml @@ -155,7 +155,8 @@ VerticalAlignment="Center" FontWeight="SemiBold" Text="{Binding Title}" - ToolTipService.ToolTip="{Binding Title}"/> + TextTrimming="CharacterEllipsis" + ToolTipService.ToolTip="{Binding DisplayPath}"/> - + - +