In wpf, i have to click on an image with Panel.ZIndex="1", but this image is "under" another image with a Panel.ZIndex="2". The event MouseDown fail. How to do that?
Thanks in advance, M.
<Grid >
<Image Name="Image_1"
Panel.ZIndex="1" />
<Image Name="Image_2"
Panel.ZIndex="2" />
</Grid>
Try using IsHitTestVisible
<Grid >
<Image Name="Image_1"
Panel.ZIndex="1" />
<Image Name="Image_2" IsHitTestVisible="false"
Panel.ZIndex="2" />
</Grid>
You can have a transparent image on top of all others, and have the click-event on that.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With