我需要设置为所有应用ToolTipService.ShowDurationProperty = 10000
如何绝对设置ToolTipService.ShowDurationProperty?
这anwser HCL
<Style TargetType="Control">
<Setter Property="ToolTipService.ShowDuration" Value="10000"/>
</Style>
这个好。但是,它必须添加项目才能添加样式。你不能?
我需要设置为所有应用ToolTipService.ShowDurationProperty = 10000
如何绝对设置ToolTipService.ShowDurationProperty?
这anwser HCL
<Style TargetType="Control">
<Setter Property="ToolTipService.ShowDuration" Value="10000"/>
</Style>
这个好。但是,它必须添加项目才能添加样式。你不能?
把下面的你Application.Resources节,如果你的App.xaml文件:
<Style TargetType="Control">
<Setter Property="ToolTipService.ShowDuration" Value="10000"/>
</Style>
如果控制不够强,与FrameworkElement的尝试。保重,如果你定义你自己的风格。在这种情况下,从这种风格源自或者把二传手也有英寸
我知道这是一个老问题,但覆盖默认值出色的作品(如this answer在其他地方看到的堆栈)
ToolTipService.ShowDurationProperty.OverrideMetadata(
typeof(DependencyObject), new FrameworkPropertyMetadata(60000));
希望它可以帮助...
这是唯一对我有用的东西。谢谢! – InvalidBrainException 2014-07-16 11:30:27