Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7870921
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T01:45:21+00:00 2026-06-03T01:45:21+00:00

I am trying to write some code that will allow the user to draw

  • 0

I am trying to write some code that will allow the user to draw on the touch screen.

When using either GestureService or ManipulationStarted/Delta, there’s a “pause” that occurs when the user starts moving their finger – only when the finger is far enough from the point in which it started, only then do you start getting ManipulationDelta events (and like I said, same deal is true for GestureService).

What can I do to avoid this threshold? It really does not work well with drawing code.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T01:45:23+00:00Added an answer on June 3, 2026 at 1:45 am

    Just blogged about it as I have come across similar questions on AppHub Forum.
    https://invokeit.wordpress.com/2012/04/27/high-performance-touch-interface-wpdev-wp7dev/

    Manipulation Delta and Gesture services are high level touch interfaces. If you want performance, consider using low level interfaces: Touch and an event called TouchReported. I tend to use them mostly (for drawing / position detection) in many of my projects

    The event you want to plug in to detech touch is

    Touch.FrameReported += Touch_FrameReported;
    

    You can do this in Loaded event. Here’s the implementation of the Touch_FrameReported handler. WorkArea is Canvas in this. I have also used this in conjugation with WritableBitmap

    private void Touch_FrameReported(object sender, TouchFrameEventArgs e)
    {
        try
        {
            // Determine if finger / mouse is down
            point = e.GetPrimaryTouchPoint(this.workArea);
    
            if (point.Position.X < 0 || point.Position.Y < 0)
                return;
    
            if (point.Position.X > this.workArea.Width || point.Position.Y > this.workArea.Height)
                return;
    
            if (this.lbLetter.SelectedIndex == -1)
                return;
    
            switch (point.Action)
            {
                case TouchAction.Down:
                    draw = true;
                    old_point = point;
                    goto default;
    
                case TouchAction.Up:
                    draw = false;
                    break;
    
                default:
                    Draw();
                    break;
            }
        }
        catch
        {
            MessageBox.Show("Application encountered error processing last request.");
        }
    }
    

    This works lot better than high level interfaces.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to write some code that that will draw the line which
I'm trying to write some code that will be run by the 'admin' user
I'm trying to write some Python code that will establish an invisible relay between
I'm trying to write some code that will take any object and convert it
I am trying to write some code that will function like google calendars quick
I'm trying to find some code that, given a string, will allow me to
I am trying to write some code that will open a file, read its
I'm trying to write some jQuery code that will highlight the element the cursor
I am trying to write some jquery that will allow me to click two
I'm trying to write some Python code that will traverse each directory in the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.