What is the minimum number of steps required to display a tooltip when the next control gains focus?
<TextBox ToolTip="Hello there!" ... />
I tried the following in gotfocus
private void ..._GotFocus(object sender, RoutedEventArgs e) {
var element = (FrameworkElement)sender;
var tooltip = element.ToolTip;
if (!(tooltip is ToolTip)) {
tooltip = new ToolTip { Content = tooltip };
element.ToolTip = tooltip;
}
((ToolTip)tooltip).IsOpen = true;
}
However, for this control, ToolTipService.Placementit ignores and SystemParameters.ToolTipPopupAnimationKeysets the level higher.
How can I make it work and follow all the settings that usually work for tooltips (except for time, obviously)?
source
share