none
How to raise touchdown event immediately after a second or 2 seconds RRS feed

  • Question

  • Hi Helpers...

    Could you help me how to set delay of 1 or 2 scs in the touchdown event.


    Mahen

    Friday, March 23, 2012 5:51 AM

Answers

  • using 

     new Thread(delegate()
                    {
                        //Wait for 2seconds
                        Thread.Sleep(500);
                        this.Dispatcher.Invoke(DispatcherPriority.Normal, new Action(delegate()
                   {
                       if (PathListBox.AreAnyTouchesOver ==true)
                       {
                           PreviewHoldGesture(sender, e);
                       }
                   }));
                        return;
                    }).Start();  can be resolved


    Mahen

    Saturday, March 24, 2012 5:05 AM

All replies

  • Please use one single threaf for your question.

    Similar post is here :

    http://social.msdn.microsoft.com/Forums/en/surfaceappdevelopment/thread/643d009c-d348-48c1-af96-a19945028df9


    Your knowledge is enhanced by that of others.

    Friday, March 23, 2012 8:11 AM
  • using 

     new Thread(delegate()
                    {
                        //Wait for 2seconds
                        Thread.Sleep(500);
                        this.Dispatcher.Invoke(DispatcherPriority.Normal, new Action(delegate()
                   {
                       if (PathListBox.AreAnyTouchesOver ==true)
                       {
                           PreviewHoldGesture(sender, e);
                       }
                   }));
                        return;
                    }).Start();  can be resolved


    Mahen

    Saturday, March 24, 2012 5:05 AM