This project has moved and is read-only. For the latest updates, please go here.

Add MouseDown event

May 3, 2010 at 1:16 AM


I am trying to add an MouseDown event handler on an image and when I click on this image, the event doesn't work.
What I am trying to do is working on a simple WPF application but not when I am using Multi-Touch Vista, could you help me with that.



Here is my XAML file:
<Grid> <mt:TouchablePanel Name="touch_panel">
<TextBox Height="23" Name="debug" VerticalAlignment="Top" Width="120" />
<Image Name="display_image" Source="Kansas.jpg" MouseDown="img_MouseDown" ></Image>

Here is my .cs:


        private void show_image_MouseDown(object sender, MouseButtonEventArgs e)
            debug.Text = "Clic!";


Thank you for your help.