The MouseDown event does not fire on an Image

0

I'm working with xaml and I have a problem, the MouseDown event is not running when I double click on an image, that's how I have the code:

<Grid x:Name="gridContainer" HorizontalAlignment="Center">
    <Image x:Name="bgImageDge" Source="/Resources/LineaDge.png" Visibility="Collapsed" Margin="20" Stretch="Uniform" Mouse.MouseDown="bgImageDge_MouseDown"></Image>
    <Image x:Name="bgImageMachineControl" Source="/Resources/LineaCM.png" Visibility="Collapsed" Margin="20" Stretch="Uniform" Mouse.MouseDown="bImageMachineControl_MouseDown"></Image>
    <Image x:Name="bgImageSectionControl" Source="/Resources/LineaCS.png" Visibility="Collapsed" Margin="20" Stretch="Uniform" Mouse.MouseDown="bgImageSectionControl_MouseDown"></Image>
    <Image x:Name="bgImageContainerHanding" Source="/Resources/LineaME.png" Visibility="Collapsed" Margin="20" Stretch="Uniform" Mouse.MouseDown="bgImageContainerHanding_MouseDown"></Image>

</Grid>

What I want is that by double clicking on the image open another userControl. I have several images and if I activate the events in codebehind they all execute when clicking on an image.

    
asked by Pistche Lawliet 25.09.2018 в 20:04
source

0 answers