Skip to content

Commit

Permalink
fix(tooltip): Support views as direct TooltipService.ToolTip content
Browse files Browse the repository at this point in the history
  • Loading branch information
davidjohnoliver committed Apr 22, 2020
1 parent 239cc2f commit 19482e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Uno.UI/UI/Xaml/Controls/ToolTip/ToolTipService.cs
Expand Up @@ -38,9 +38,9 @@ private static void OnToolTipChanged(DependencyObject dependencyobject, Dependen

var toolTip = args.NewValue as ToolTip;

if (toolTip == null && args.NewValue is string toolTipString)
if (toolTip == null && args.NewValue != null)
{
toolTip = new ToolTip {Content = toolTipString};
toolTip = new ToolTip { Content = args.NewValue };
}

if (toolTip != null)
Expand Down

0 comments on commit 19482e8

Please sign in to comment.