I ran into a huge problem, I tried everything I could, but I did not find any solution. I have a listBox with a DataTemplate. I want to use the MouseLeftButtonDown and MouseLeftButtonUp events to test the selected item, the same one the user clicked on.
The problem is that the MouseLeftButtonUp event is recognized, but not the MouseLeftButtonDown event.
Part of my XAML code:
<ListBox Grid.Row="1" MouseLeftButtonDown="listBox_Faits_MouseLeftButtonDown" MouseLeftButtonUp="listBox_Faits_MouseLeftButtonUp">
Code behind:
private void listBox_Faits_MouseLeftButtonUp(object sender, MouseEventArgs e) { ... } private void listBox_Faits_MouseLeftButtonDown(object sender, MouseEventArgs e) { ... }
Does anyone know why?
Thanks,
Hello,
Flo
source share