Thursday, July 1, 2010

ToolTips and ShowDuration

This took me a while to figure out, so I thought I'd mention it for others searching. If you want to set a global ToolTip show duration in WPF, you can do it for each type of control as a style in the XAML file. E.g.

<Style TargetType="Label">
<Setter Property="ToolTipService.ShowDuration" Value="120000" />

This means that for the Window, all the Label ToolTips will remain for two minutes.

If you want good looking ToolTips, go here.

No comments:

Post a Comment