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

  • SEARCH
  • Home
  • 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 8776379
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T19:02:23+00:00 2026-06-13T19:02:23+00:00

I have a ListView control in XAML. The items are defined by a template

  • 0

I have a ListView control in XAML.
The items are defined by a template control with a TextBlock inside a Grid.
Now I want to trigger an action when I double click the TextBlock.
To my surprise I find there is no DoubleClick event to hook up … !
I thought it was just the TextBlock that din’t have it, but actually no controls have it.
I look for DoubleClick and MouseDoubleClick but they are definitely absent.

I have read suggestions where an EventTrigger is added to a control with Gesture=”MouseDoubleClick”. It looks promising but in my case the compiler complains and tells me there is no such gesture as a MouseDoubleClick. Same with DoubleClick.

Did the DoubleClick disappear in some version of .Net?
I have .Net Framework 4.5 and the project is WPF Application.

Do I have to do stupid workarounds by detecting MouseDown and check the elapsed time since last MouseDown? Sounds like stoneage …

  • 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-06-13T19:02:24+00:00Added an answer on June 13, 2026 at 7:02 pm

    It is always refreshing to formulate your problem!
    After thinking a while I thought maybe they added a counter to the mouse events instead of having separate events.
    That seems to be the case!!!
    The MouseButtonEventArgs has a ClickCount property. When checking for value 2 I detect my DoubleClick!

    Still a bit odd though to just kick out the DoubleClick. Even after searching I find no reference as to when and why it disappeared.

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

Sidebar

Related Questions

I have a ListView control, I want to edit the InsertItem Template to include
I have listview control.There is an option to remove selected items.After the user removes
I have an ASP.NET 2.0 ListView control (aka:parent) and configured inside this ListView I
I have a SQLDataSource that is bound to a ListView control but I want
I have the following xaml which resides in a wpf user control - <Grid>
I have a ListView control inside UserControl . But when content overflows size of
I have a WPF ListView control with a ContextMenu written in XAML Code. With
I have the following XAML/Control Template for a ListViewItem: <Window.Resources> <ControlTemplate x:Key=ItemTemplate TargetType=ListViewItem> <Border
I have a ListView control set up in details mode with 5 columns. It
I have a ListView control on my form set up like this in details

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.