It's a bit unclear what you are trying to do but if you want to perform some action when the mouse moves over a ComboBoxItem, you could use an ItemContainerStyle and a DependencyPropertyDescriptor:
DependencyPropertyDescriptor dpd;
private void ComboBox_Loaded(object sender, RoutedEventArgs e)
{
ComboBoxItem cmb = sender as ComboBoxItem;
dpd = DependencyPropertyDescriptor
.FromProperty(IsMouseOverProperty, typeof(ComboBoxItem));
if (dpd != null)
dpd.AddValueChanged(cmb, OnIsMouseOver);
}
private void ComboBox_Unloaded(object sender, RoutedEventArgs e)
{
if (dpd != null)
dpd.RemoveValueChanged(cmb, OnIsMouseOver);
}
private void OnIsMouseOver(object sender, EventArgs e)
{
ComboBoxItem cmb = sender as ComboBoxItem;
if (cmb.IsMouseOver)
{
//do something...
}
}
<ComboBox x:Name="cmb">
<ComboBox.ItemContainerStyle>
<Style TargetType="ComboBoxItem">
<EventSetter Event="Loaded" Handler="ComboBox_Loaded" />
<EventSetter Event="Unloaded" Handler="ComboBox_Unloaded" />
</Style>
</ComboBox.ItemContainerStyle>
</ComboBox>
comboBox´selements. Just bind the event in XAML and implement the method in your code. By the way, that´s not how SO works. Put some effort in research and try it on your own before asking.