title: Detecting tap events in quick succession
body: <p>I have page which shows either one of a number of images or a button. On clicking the button I hide it and display the next image in the list. Tapping the image makes it disappear and shows the button again.</p>
  
  <p>When clicking the button multiple times in quick succession the displayed image doesn't respond to being tapped. I guess it is due to UI thread blocking but I tried it with worker thread and still is not working.</p>
  
  <pre><code>public void ShowNextImage()
      {
  
  image_new.Source = getCurrentBitmap();
   workerThread.WorkerReportsProgress = true;
          workerThread.WorkerSupportsCancellation = true;
          workerThread.DoWork += new DoWorkEventHandler(worker_DoWork);
          workerThread.RunWorkerCompleted += new      RunWorkerCompletedEventHandler(worker_RunWorkerCompleted);
   workerThread.RunWorkerAsync();
    }
    void worker_DoWork(object sender, DoWorkEventArgs e)
      {
  
          Deployment.Current.Dispatcher.BeginInvoke(() =&gt;
          {
  
                  transition.Begin();
                  transition.Completed += delegate
                  {
                      transition.Stop();
                  };
  
  
          });
  
  
      }
      void worker_RunWorkerCompleted(object sender,
                             RunWorkerCompletedEventArgs e)
      {
  
  
          if (e.Error != null)
          {
              // Happens on the UI thread so its ok
              MessageBox.Show("Error occurred...");
  
          }
      }
  </code></pre>