-1

I need set to all app ToolTipService.ShowDurationProperty = 10000

this anwser HCL

 <Style TargetType="Control"> 
     <Setter Property="ToolTipService.ShowDuration" Value="10000"/>
</Style>

this Good. However, it must add the items to add style. You can not?

Dave Clemmer
  • 3,741
  • 12
  • 49
  • 72
Mediator
  • 14,951
  • 35
  • 113
  • 191

2 Answers2

8

I know this is an old question, but overriding the default value works brilliantly (as seen in this answer elsewhere on stack)

ToolTipService.ShowDurationProperty.OverrideMetadata(
                typeof(DependencyObject), new FrameworkPropertyMetadata(60000));

Hope it helps...

Community
  • 1
  • 1
sean.net
  • 735
  • 8
  • 25
3

Put the following in your Application.Resources-section if you App.xaml-file:

<Style TargetType="Control">
     <Setter Property="ToolTipService.ShowDuration" Value="10000"/>
</Style>

If control is not strong enough, try it with FrameworkElement. Take care, if you define your own styles. In this case derive from this style or put the setter also there in.

HCL
  • 36,053
  • 27
  • 163
  • 213