Answered by:
How can I disable press and hold effect by touch in Metro style app?

Question
-
Hi,
How can I disable press and hold effect by touch in Metro style app?
If I touch and hold for a while on a screen on Metro style app, a rectangle like below shows up .
Is there any way to disable this effect?
I could see this effect is disabled in most of Win8 RP pre-installed metro applications.
Anybody who knows this, please let me know.
Thank you.
- Edited by FunkeeMastah Tuesday, June 26, 2012 10:34 AM
- Moved by Min ZhuMember Wednesday, June 27, 2012 1:06 AM (From:Windows Presentation Foundation (WPF))
Monday, June 25, 2012 7:34 AM
Answers
-
For XAML this effect has been turned off by default by the RTM release.
sorry for the problems,
-mark
Program Manager
Microsoft
This post is provided "as-is"- Proposed as answer by Mark RideoutMicrosoft employee Friday, July 27, 2012 6:27 PM
- Marked as answer by FunkeeMastah Friday, August 10, 2012 4:47 AM
Monday, July 23, 2012 8:17 PM
All replies
-
Hi FunkeeMastah,
Metro style app and WPF app are different kinds of applications.
By "Metro WPF app", do you mean Metro Style xaml app? Or a WPF application running on Windows 8?
Have a nice day!
Min Zhu [MSFT]
MSDN Community Support | Feedback to us
Tuesday, June 26, 2012 6:14 AMModerator -
I'm sorry to make you confused..
I'll fix the title.
It means Metro Style App on WinRT.
(Metro Style xaml app)
and also I could see that the JavaScrtip Metro Style App doesn't show the press and hold rectangle effect.
Does only JavaScript Metro Style app not show the effect?
or Xaml Metro Style App can also disable the effect?
- Edited by FunkeeMastah Tuesday, June 26, 2012 12:31 PM
Tuesday, June 26, 2012 10:31 AM -
Hi FunkeeMastah,
Thanks for the clarification. I have moved this thread to the Metro Style app forum for better support.
Best regards,
Min Zhu [MSFT]
MSDN Community Support | Feedback to us
Wednesday, June 27, 2012 1:09 AMModerator -
@FunkeeMastah,
What sort of control is that?
Stefan
Wednesday, June 27, 2012 1:31 AM -
@ StefanOlsan
It shows on all controls.
It is the same press and hold effect by touch as its desk top area effect.
If you touch the screen and hold for a while on desk top or Xaml Metro Style app, you can see the rectangle(square).
I'd like to disable this effect on Xaml Metro Style app.
Thank you.
- Edited by FunkeeMastah Wednesday, June 27, 2012 7:40 AM
Wednesday, June 27, 2012 7:40 AM -
I would also like to know what is causing this and how to disable it for a metro game.Wednesday, June 27, 2012 8:05 PM
-
Just because I found this thread before the actual answer, here it is:
element.addEventListener("MSGestureHold", function(e) { e.preventDefault(); }, false); // Disables visual
I found the answer here: Pointer and Gesture Events
Cheers, Ben.
Monday, July 23, 2012 2:27 PM -
For XAML this effect has been turned off by default by the RTM release.
sorry for the problems,
-mark
Program Manager
Microsoft
This post is provided "as-is"- Proposed as answer by Mark RideoutMicrosoft employee Friday, July 27, 2012 6:27 PM
- Marked as answer by FunkeeMastah Friday, August 10, 2012 4:47 AM
Monday, July 23, 2012 8:17 PM