diff --git a/Wpf/Controls/ModernTooltipService.cs b/Wpf/Controls/ModernTooltipService.cs index 092aa1b..27ab8c5 100644 --- a/Wpf/Controls/ModernTooltipService.cs +++ b/Wpf/Controls/ModernTooltipService.cs @@ -227,7 +227,9 @@ public static class ModernTooltipService { private static bool TryGetToolTip(FrameworkElement owner, out object? content, out ToolTip? sourceToolTip) { var raw = owner.ToolTip; sourceToolTip = raw as ToolTip; - content = sourceToolTip?.Content ?? raw; + content = sourceToolTip is null + ? raw + : sourceToolTip.Content ?? (ReferenceEquals(sourceToolTip, borrowedToolTip) ? borrowedContent : null); return content is not null && (content is not string text || text.Length > 0); }