Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

touch input and mouse in wpf

$
0
0

Hi Guys

I have a problem with my app on my surface pro

I have 5 buttons on my main window

1 of the buttons opens the OpenFileDialog windwo so I can select a picture from my picture directory then updates an image with that picture

all works fine when i use a mouse it goes pear shaped when using touch 

if i touch the button the window opens i select the file click open and it updates the image but when i try to click on another button or in fact anywhere else on the form it brings up the file open dialog as if i pressed the same button again

It seems to be holding the last touch location as the buton that has mouse enter and leave functions to change the button image is still on the enter status.

I am using mouse enter and leave to cpture what is touched. I have tried using the touch enter and leave but still has same problem

if i use the mouse to enter and leave the buton it then works again

is there a way of resetting it so it will take input from elsewhere on the form

amy help appreciated

Mark


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>