问题
In C# UWP, how to get current finger holding coordinates on mobile?
I have been using this:
private void mainGridHolding(object sender, HoldingRoutedEventArgs e)
{
var coordinateY = e.GetPosition(mainGrid).Y;
}
But, I don't want to execute it all the time whenever user holding the screen.
And also, this event fire after the popup is shown, so I get the wrong informations.
Like there is a property for Pointer location:
var pointerPosition = Windows.UI.Core.CoreWindow.GetForCurrentThread().PointerPosition;
Is there any property that holds the information about current touch?
来源:https://stackoverflow.com/questions/44907117/c-sharp-uwp-current-finger-holding-coordinates-on-mobile