How do I use the TouchDown event?

VincentECPVincentECP USMember ✭✭

Right now I have a button declared in Xaml and the code that it runs in C#.

<Button
          x:Name="Stop"
          Text="Stop"
          Grid.Row="12"
          Grid.ColumnSpan="9"
          Clicked="Stop_Clicked"
          ></Button>

Then in C#

     public void Stop_Clicked(object sender, EventArgs e)
            { 
            //Some Code
         }

The button needs to have quick timing because When it is pressed it stops an object from moving. I know the TouchDown handler exists but I have been having trouble implementing it. In Xaml I have tried removing Clicked="Stop_Clicked" and replacing it with TouchDown="Stop_Clicked" but got an error. Any help or an example would be greatly appreciated.

Sign In or Register to comment.