Skip to content

Commit

Permalink
AAdding tooltips to NavigationViewItems on AddWidget dialog (#2908)
Browse files Browse the repository at this point in the history
  • Loading branch information
guimafelipe authored May 15, 2024
1 parent 27828b6 commit a55346e
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,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))
Expand All @@ -125,6 +127,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);
}
Expand Down

0 comments on commit a55346e

Please sign in to comment.