diff --git a/src/Uno.UI/UI/Xaml/Controls/ToolTip/ToolTipService.cs b/src/Uno.UI/UI/Xaml/Controls/ToolTip/ToolTipService.cs index c61fb770f032..b5970c2d80fb 100644 --- a/src/Uno.UI/UI/Xaml/Controls/ToolTip/ToolTipService.cs +++ b/src/Uno.UI/UI/Xaml/Controls/ToolTip/ToolTipService.cs @@ -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)