【发布时间】:2015-11-21 13:09:28
【问题描述】:
即使在设置 ToolTipService.ShowOnDisabled="True" 之后,禁用复选框上的工具提示也不可见。
<CheckBox Grid.Column="0" HorizontalAlignment="Center" Visibility="{Binding Converter={StaticResource TaskCompletionVisbilityConverter},ConverterParameter='chkbox'}"
Height="16" Width="16" Foreground="{Binding Converter={StaticResource TaskColorConverter}}"
ToolTipService.ShowOnDisabled="True" ToolTipService.IsEnabled="True"
ToolTip="Check To complete Task"
IsEnabled="{Binding State, Converter={StaticResource EnableDisableConverter},
ConverterParameter='checkbox',Mode=TwoWay}" Margin="37,5,0,0">
【问题讨论】:
-
我不认为这个问题与WPF Tooltip Visibility 重复。事实上@Pa1 已经使用了
ToolTipService.ShowOnDisabled="True"和ToolTipService.IsEnabled="True"。我想工具提示应该是可见的,所以也许还有其他东西隐藏了它。 Pa1,您能否提供有关您的 XAML 的更多详细信息?