I can get the current cursor position inside a Map Tool as follows:
protected override async Task HandleMouseDownAsync(MapViewMouseButtonEventArgs e)
{
// Get cursor point
MapPoint mapPoint = await QueuedTask.Run(() =>
{
return ActiveMapView.ClientToMap(e.ClientPoint);
});
} However, I would like to get the cursor position outside of a MapTool. Does anyone know how to handle this? I've already posted another question: https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-catch-event-when-z-changes/m-p/1339114#M10565
Thanks,
Barbara