Click here to Skip to main content
14,029,438 members
Rate this:
 
Please Sign up or sign in to vote.
See more:
Hi, i am working on a touch screen application. when you press a button it will capture 50 images. but my problem is button is not releasing until all the 50 images comes to my PC(Via TCP/IP). then how to make my button press and release to be run in separate thread rather than UI thread.

What I have tried:

Button TouchDown and TouchUp is happening but, its taking time to release i mean TouchUp
Posted
Updated 7-Mar-19 19:00pm
v2
Comments
NotPolitcallyCorrect 25-May-17 9:33am
   
You answered yourself. Take whatever it is that you are doing in your button press and move it to a thread.
Member 11559270 26-May-17 7:54am
   
but i am doing with MVVM touch screen application.and i have two event handlers that is TouchDown and TouchUp. When i "TouchDown(button Pressed)" I will send different command and "TouchUp(Button Released)" different command. So please provide the solution for this
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

   
Comments
Member 11559270 26-May-17 7:55am
   
but i am doing with MVVM touch screen application.and i have two event handlers that is TouchDown and TouchUp. When i "TouchDown(button Pressed)" I will send different command and "TouchUp(Button Released)" different command. So please provide the solution for this
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

hello,i am sorry i can't help you with your problem,but may i ask you how to define TouchDown and TouchUp for a button?
what i have done is :
<Button Content="Button" TouchDown="touch_down" HorizontalAlignment="Left" Margin="221,116,0,0" VerticalAlignment="Top" Width="194" Height="75" />

private void touch_down(object sender, TouchEventArgs e)
{
MessageBox.Show("button touched down");
}


it has no response,what's wrong? Can you help me ?
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Cookies | Terms of Service
Web04 | 2.8.190419.4 | Last Updated 8 Mar 2019
Copyright © CodeProject, 1999-2019
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100