I use on a tablet VS developed a WPF procedures, to achieve a Button control on setting a variable, loosen the reset function of the variable (mouse), could you tell me how to achieve?
I tried the TouchDown and TouchUp events, but no response, don't know what is wrong or grammar is wrong? Are there any other way?
Code:
Private void touch_down (object sender, TouchEventArgs e)
{
MessageBox. Show (" button touched down ");
}
CodePudding user response:
When the MouseLeftButtonDown CaptureMouse (), when MouseLeftButtonUp ReleaseMouseCapture (), should be able to replace the touch events
CodePudding user response:
Wpf tunnels and routing click event can help you to solve this problem
CodePudding user response:
You is how to realize afterwards?