c# uwp current finger holding coordinates on mobile

坚强是说给别人听的谎言 提交于 2019-12-12 03:53:59

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!