I have difficulties with implementing Holding event on Image in a Metro app.
<Image Name="imgArrowUp" Source="Images/controls/arrow_up.png" Tapped="imgArrowUp_Tapped" Holding="imgArrowUp_Holding" />
Tapped event works just fine. But I can’t manage to raise Holding event using mouse. I searched through internet and I found some information about GestureSettings.HoldWithMouse, but I don’t get how to use it. I thought it is a XAML argument, but unfortunately it is not.
How can I raise Holding event on the image using left mouse button?
Here is an answer. Only problem was badly chosen event.
Although
Holdingevent eventually worked well using tablet, it doesn’t provide solution I was trying to find. UsingPointerPressedandPointerReleasedevents solve the problem.