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

1

6

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?

Cord answered 25/4, 2010 at 10:34 Comment(4)
have you used snoop to find out exactly what is going on?Trite
All I see in Snoop is that the button handled a click event. The OpenFileDialog is literally allowing the second click of the double-click to pass through to the UI.Cord
Interesting, consider reporting on Windowsclient.net.Pitching
I have the same problem with Silverlight 4. Do anyone know what is going on? How to mitigate this problem?Koon
C
1

One trick to solve this, hope still helps:

Mouse left button up event and openfiledialog

Regards

Corfu answered 24/10, 2011 at 14:26 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.