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 6741439
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T11:43:30+00:00 2026-05-26T11:43:30+00:00

On Windows 7 Phone, using Silverlight framework I’d like to handle when a Button

  • 0

On Windows 7 Phone, using Silverlight framework
I’d like to handle when a Button is released.

It’s easy to tell when the button is pressed (Click event which is fired either when pressed or when released according to the ClickMode property)

I’ve played with all the other events provided with the Events editor (KeyUp, LostFocus, MouseLeave etc..)

But I’m yet to find something that is definitive in regards to getting an event when a button is released.

Ultimately, I’m trying to handle doing a click vs a long click when pressing on a button

Thanks

  • 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-05-26T11:43:31+00:00Added an answer on May 26, 2026 at 11:43 am

    For your situation, KeyUp is only half of the story. You also need to handle KeyDown where you will save the current time which you will then compare to the current time value after KeyUp to determine whether the press was short or long. You also need to make sure that you track one particular key in case your handler(s) is/are intercepting all key strokes.

    If for some reason ClickDown/Up don’t work out you could try handling the Click event but starting with a ClickMode of press, then changing ClickMode to release on the press handler. This process, though not simple, would give you a chance to implement the down-hold and timer-release sequence that you’re looking for.

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

Sidebar

Related Questions

How do you implement something like drag and drop using (Silverlight) Windows Phone 7
I'm building a windows phone 7 application using silverlight 4. I store my data
I am using Silverlight to develop a Windows Phone 7 application. My requirement is
Windows Phone 7.1/7.5/Mango Silverlight App. Coming from here: Need clarification on using audio on
I'm using Silverlight on Windows Phone 7. Is it normal to get loads of
I am using the Silverlight Toolkit for Windows Phone 7 ( http://silverlight.codeplex.com/ ). What
I am using the LongListSelector from the Silverlight for Windows Phone Toolkit. For each
I am new to windows phone 7 using silverlight. I want that the user
I'm trying to implement binding validation using Silverlight on Windows Phone, but all I
I'm using a windows phone silverlight application, the default panorama template has a listbox

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.