Hi,
I am having a listbox, which will disable and enable at runtime, I need to get the tooltip to be displayed for the listbox items, even when it is disabled. Currently tooltip is working only when the listbox is enabled.
ListBox x:Name="lstEpisod" ItemsSource="{Binding ScopeDetails,Mode=TwoWay}" Height="115" Width="212" ScrollViewer.HorizontalScrollBarVisibility="Hidden" Background="#FFF3F3F3" ItemTemplate="{StaticResource EpisodeEncounterTemplate}" Margin="0,5,0,2" TabIndex="0" HorizontalAlignment="Left">
<ListBox.ItemContainerStyle>
<Style TargetType="ListBoxItem">
<Setter Property="Padding" Value="0" />
<Setter Property="Margin" Value="0"/>
<Setter Property="BorderThickness" Value="0"/>
<Setter Property="Background" Value="#FFF3F3F3"/>
<Setter Property="Foreground" Value="Black"/>
</Style>
<!--<Setter Property="ToolTipService.ToolTip" Value="{Binding Text, RelativeSource={RelativeSource Self}}"/>-->
</ListBox.ItemContainerStyle>
</ListBox>
I am having a listbox, which will disable and enable at runtime, I need to get the tooltip to be displayed for the listbox items, even when it is disabled. Currently tooltip is working only when the listbox is enabled.
ListBox x:Name="lstEpisod" ItemsSource="{Binding ScopeDetails,Mode=TwoWay}" Height="115" Width="212" ScrollViewer.HorizontalScrollBarVisibility="Hidden" Background="#FFF3F3F3" ItemTemplate="{StaticResource EpisodeEncounterTemplate}" Margin="0,5,0,2" TabIndex="0" HorizontalAlignment="Left">
<ListBox.ItemContainerStyle>
<Style TargetType="ListBoxItem">
<Setter Property="Padding" Value="0" />
<Setter Property="Margin" Value="0"/>
<Setter Property="BorderThickness" Value="0"/>
<Setter Property="Background" Value="#FFF3F3F3"/>
<Setter Property="Foreground" Value="Black"/>
</Style>
<!--<Setter Property="ToolTipService.ToolTip" Value="{Binding Text, RelativeSource={RelativeSource Self}}"/>-->
</ListBox.ItemContainerStyle>
</ListBox>
Thanks for any support.
Regards,
V.Chocks.