---
title: "How to handle/capture a long press in windows store apps"  
description: "How to handle/capture a long press in windows store apps"  
author: "Anonymous User"  
published: 2015-04-25  
updated: 2015-04-25  
canonical: https://www.mindstick.com/forum/23140/how-to-handle-capture-a-long-press-in-windows-store-apps  
category: "windows phone"  
tags: ["windows phone"]  
reading_time: 1 minute  

---

# How to handle/capture a long press in windows store apps

Could [anyone tell me](https://www.mindstick.com/interview/23033/can-anyone-tell-me-about-hadoop-toolbox) how to capture a [long press](https://www.mindstick.com/forum/23142/detect-touch-press-vs-long-press-vs-movement) for a [windows](https://www.mindstick.com/articles/311752/how-to-install-and-use-the-google-wifi-software-on-a-windows-or-mac-computer) store app in C#? I can used a "tapped" [gesture](https://yourviews.mindstick.com/view/228/female-passenger-praised-uber-drivers-gesture) no [problem](https://yourviews.mindstick.com/view/81399/tackling-the-problem-of-unemployment-during-corona-pandemic) but when I [replace](https://yourviews.mindstick.com/view/81330/cow-antibody-research-in-usa-a-step-ahead-to-replace-plasma-therapy) **TappedRoutedEventArgs** with **HoldingRoutedEvent** it just doesn't [register](https://www.mindstick.com/blog/220/registering-client-script-in-asp-dot-net) a holding gesture. I'm [testing](https://www.mindstick.com/articles/1849/role-of-testing-in-software-development) this with my laptop so could it be that it doesn't recognize a mouse holding event?

\

I'm assuming there's similar [functionality](https://www.mindstick.com/blog/136/using-watermark-functionality-in-textbox-by-jquery) for the windows phone 7 but they're mostly for [Silverlight](https://www.mindstick.com/forum/195/databind-in-silverlight) which isn't used for Windows 8. Any links/examples would be a great help!

## Replies

### Reply by Anonymous User

Use the Holding Event:

## XAML:

```
<Grid Background="{StaticResource ApplicationPageBackgroundThemeBrush}" Holding="Grid_Holding_1"></Grid>
```

**CS:**\

```
private void Grid_Holding_1(object sender, HoldingRoutedEventArgs e){    Debug.WriteLine("You held at" + DateTime.Now.ToString());}
```

You are correct about the mouse not firing the holding event. Run it in the simulator and then you can use the "Basic Touch Mode" to simulate the hold.\


---

Original Source: https://www.mindstick.com/forum/23140/how-to-handle-capture-a-long-press-in-windows-store-apps

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
