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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T19:34:41+00:00 2026-05-25T19:34:41+00:00

This is a Windows Phone 7 Silverlight app. I have an ItemsControl that is

  • 0

This is a Windows Phone 7 Silverlight app. I have an ItemsControl that is displaying a scrolling list. I’m using a Grid as the container in the ItemTemplate. I want to capture a click event (touch) on the Grid to navigate to a details view for the item clicked. However, the only events I see available to me are mouse events that are also being used in scrolling. I’m more familiar with Android programming in which the framework differentiates a scroll event and a click event for me. How do I do the same on WP7? I want to ignore touch events when they’re associated with scrolling but capture click events that are actual clicks by the user. The manual way is to handle MouseLeftButtonUp and just set a flag when scrolling that tells me to ignore the event, but I’d love to avoid having to write that myself every time I need to display a list. I would think this is a very common use case that has an easy solution.

SOLUTION

Matt’s answer below worked, but here’s a full description of how I got it to work for those who google this in the future.

  1. Download and install Silverlight Toolkit for WP7: http://silverlight.codeplex.com/releases/view/60291
  2. Add reference to Microsoft.Phone.Controls.Toolkit.dll in project
  3. Include the toolkit namespaces
  4. Add a GestureListener to the item that should receive tap events:

Namespaces to add to pages and controls that need this functionality:

xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit" 
xmlns:toolkitPrimitives="clr-namespace:Microsoft.Phone.Controls.Primitives;assembly=Microsoft.Phone.Controls.Toolkit"

Updated list xaml (abbreviated):

        <ItemsControl ItemsSource="{Binding FeedItems}">
            <ItemsControl.ItemTemplate>
                <DataTemplate>

                    <!-- Container -->
                    <Grid HorizontalAlignment="Stretch">
                        <toolkit:GestureService.GestureListener>
                            <toolkit:GestureListener
                                Tap="OnFeedItemTap" />
                        </toolkit:GestureService.GestureListener>
  • 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-25T19:34:41+00:00Added an answer on May 25, 2026 at 7:34 pm

    If you’re using the latest tools/targetting 7.1 (mango) devices then you can use the Tap event on the Grid.

    If you’re still targetting 7.0 then you could use the Click event or use the GestureListener in the Toolkit to detect taps.

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

Sidebar

Related Questions

i have a windows phone silverlight grid that is quite big, around 4 x
I have a Silverlight Windows Phone 7 app that pulls data from a public
I have a simple Silverlight app that I want to run on Windows Phone
I'm building a Windows Phone 7 app in Silverlight. I have a list of
Hi I am working in windows 7 phone based app using silverlight. I have
in my silverlight for windows phone app, i've created this xaml in the mainpage
I am building an app for Windows Phone, and in this app I have
Windows Phone 7.1/7.5/Mango Silverlight App. Coming from here: Need clarification on using audio on
I have a Silverlight application for Windows Phone 7. This application runs fine, except
I have a page in my windows phone 7 app. This page sets it's

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.