Answered

Which method will react to touch?

I've placed all of the following in my code, with breakpoints, but not a single one is entered when I use my touchscreen to move, zoom, select etc.

protected override void OnGotTouchCapture(TouchEventArgs e)
{
base.OnGotTouchCapture(e);
}
protected override void OnTouchDown(TouchEventArgs e)
{
base.OnTouchDown(e);
}

protected override void OnTouchEnter(TouchEventArgs e)
{
base.OnTouchEnter(e);
}

protected override void OnTouchMove(TouchEventArgs e)
{
base.OnTouchMove(e);
}

protected override void OnTouchUp(TouchEventArgs e)
{
base.OnTouchUp(e);
}

protected override void OnLostTouchCapture(TouchEventArgs e)
{
base.OnLostTouchCapture(e);
}

protected override void OnPreviewTouchDown(TouchEventArgs e)
{
base.OnPreviewTouchDown(e);
}

protected override void OnPreviewTouchMove(TouchEventArgs e)
{
base.OnPreviewTouchMove(e);
}

protected override void OnPreviewTouchUp(TouchEventArgs e)
{
base.OnPreviewTouchUp(e);
}

protected override void OnTouchLeave(TouchEventArgs e)
{
base.OnTouchLeave(e);
}

I need to trigger something while zooming by using touch but I can't seem to figure out how to automatically register the touchEvent. Thanks!

Edit: I need to trigger things whenever two fingers are touching the touchscreen, not only when zooming.

2

Comments

1 comment
  • Hi Adam,

    You have various multitouch events in the Model that you can listen to (MultitouchDown, Up, Move, Click, DoubleClick) to implement your own logic.

    If you need more help on this, please open a ticket as explained here: https://devdept.com/Support#ticket

    0
    Comment actions Permalink

Please sign in to leave a comment.

Didn't find what you were looking for?

New post