From 8446a7f38dc66cda1df932a810de82a7f22d3d35 Mon Sep 17 00:00:00 2001 From: Felipe da Conceicao Guimaraes Date: Tue, 14 May 2024 14:57:42 -0700 Subject: [PATCH] Adding tooltips to navigation view on AddWidget dialog --- .../Dashboard/DevHome.Dashboard/Views/AddWidgetDialog.xaml.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/Dashboard/DevHome.Dashboard/Views/AddWidgetDialog.xaml.cs b/tools/Dashboard/DevHome.Dashboard/Views/AddWidgetDialog.xaml.cs index 214ba7c386..b7dd70a21d 100644 --- a/tools/Dashboard/DevHome.Dashboard/Views/AddWidgetDialog.xaml.cs +++ b/tools/Dashboard/DevHome.Dashboard/Views/AddWidgetDialog.xaml.cs @@ -107,6 +107,8 @@ private async Task FillAvailableWidgetsAsync() Content = providerDef.DisplayName, }; + navItem.SetValue(ToolTipService.ToolTipProperty, providerDef.DisplayName); + foreach (var widgetDef in comSafeWidgetDefinitions) { if (widgetDef.ProviderDefinitionId.Equals(providerDef.Id, StringComparison.Ordinal)) @@ -121,6 +123,7 @@ private async Task FillAvailableWidgetsAsync() }; subItem.SetValue(AutomationProperties.AutomationIdProperty, $"NavViewItem_{widgetDef.Id}"); subItem.SetValue(AutomationProperties.NameProperty, widgetDef.DisplayTitle); + subItem.SetValue(ToolTipService.ToolTipProperty, widgetDef.DisplayTitle); navItem.MenuItems.Add(subItem); }