How to detect point behind background app?

Liang Chun Lin 1 Reputation point

According " Handle pointer input " , there is a "PointerRoutedEventArgs e" can get a point object.

PointerPoint ptrPt = e.GetCurrentPoint(Target);

But I want to get the PointerPoint under the background app. I can't find useful information about such method / function to get the "PointerRoutedEventArgs" trigger for background app.

How could I get it ?

Universal Windows Platform (UWP)
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Richard Zhang-MSFT 6,936 Reputation points


    Welcome to our Microsoft Q&A platform!

    For UWP applications, Pointer events can only be captured when the application is running in the foreground and the cursor is moved in the application.

    There is currently no API in UWP to capture pointer events outside the app.


    0 comments No comments