title: how to program hold event in silverlight/wp7
body: <p>I got a little problem with button events. I programmed one button to decrease specific value by 1 (click), and I want to decrease it over time while holding button pressed. I'm using Silverlight, not XNA.</p>
  
  <pre><code>myTimer.Change(0, 100);
  private void OnMyTimerDone(object state)
      {
          Deployment.Current.Dispatcher.BeginInvoke(() =&gt;
              {
                  if (rightButton.IsPressed)
                  {
                      rightButton_Click(null, null);
                  }
              });
      }
  </code></pre>
  
  <p>this code is correctly working at the beginning, but then I am unable to single tap as it is always calling hold event.</p>