Has anyone noticed that a WPF file dialog will double click on the user interface to select a file?

I have several buttons on my WPF interface, and I also need to select files from time to time. I continued to notice strange problems when, when I double-click an item in the file dialog box, a button on the main user interface will also be clicked. After the experiments, it seems that if you lined up an element in the file dialog with the button behind it in the main interface and double-click to select the file, it will be a single click of a button behind it.

Has anyone else noticed this, or is it just a mistake with the way I laid out my user interface?

+4
source share
1 answer

One trick to solve this problem, hopefully still helps:

Left mouse button event and openfiledialog

Hi

+1
source

Source: https://habr.com/ru/post/1307932/


All Articles