I need to show tooltip for WPF ComboBox items. ComboBox using is from PresentationFramework.dll. I am not using XAML. Please suggest the event that need to be raised, when we hover the mouse on ComboBox Items.
What I have tried:
MouseMove event doesnot trigger when we move cursor on combobox items.
<
ComboBox
>
<
ComboBox.ToolTip
>
<
ToolTip
DataContext
="
{Binding Path=PlacementTarget, RelativeSource={RelativeSource Self}}"
>
<
TextBlock
Text
="
{Binding SelectionBoxItem}"
/
>
<
/ToolTip
>
<
/ComboBox.ToolTip
>
<
/ComboBox
>
To see when the tooltip opens, try something like this:
myCombo.Tooltip.Opened +=
new
RoutedEventHandler(ToolTip_Open);
myCombo.Tooltip.Closed +=
new
RoutedEventHandler(ToolTipClosed);
Read the question carefully.
Understand that English isn't everyone's first language so be lenient of bad
spelling and grammar.
If a question is poorly phrased then either ask for clarification, ignore it, or
edit the question
and fix the problem. Insults are not welcome.
Don't tell someone to read the manual. Chances are they have and don't get it.
Provide an answer or move on to the next question.
Let's work to help developers, not make them feel stupid.