Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Has anyone noticed that a WPF file dialog will pass a click through to the UI when double clicking to select a file?

I have some buttons on my WPF UI and I also need to choose files from time to time. I kept noticing strange problems where when I double-click an item in the file dialog, a button on the main UI would also get clicked. After experimenting, it seems that if you line up an item in the file dialog with a button behind it on the main UI and double click to select the file, it will single-click the button behind it as well.

Has anyone else noticed this, or is it just a freak bug with the way I have my UI laid out?

like image 377
Ben McIntosh Avatar asked Nov 15 '22 11:11

Ben McIntosh


1 Answers

One trick to solve this, hope still helps:

Mouse left button up event and openfiledialog

Regards

like image 121
D.Rosado Avatar answered Dec 08 '22 00:12

D.Rosado