I need to increase a value and show it in the screen as long as a touch screen button is pressed. When release the value should stop increasing. How to do this?
WPFWindow elements support TouchDown and TouchUp events, so you’d be setting up a button in the UI (use Glide maybe?), creating an event handler for the button’s TouchDown event, and in that event handler you’d be setting up a timer instance, and setting up an event handler for the timer tick. In the timer tick event handler you’d increment your value and update the UI, and you’d be stopping that timer in the button’s TouchUp event handler.
Thank you. Worked perfect!