I have bound the Tooltip property of a control in wpf to a string called TooltipText . TooltipText default value is empty string "". It gets populated later on under some conditions.
The problem is when the TooltipText is empty it looks odd when the user does mouse over my control as it displays an empty box tooltip.
Is there a way to NOT SHOW the tooltip when TooltipText is empty but show it when its length is greater than 1? I hope I made myself clear.
I do this in xaml as (code is incomplete and only partial):
<c:MyControl ToolTip="{Binding ElementName=controlName, Path=TooltipText}">