Click or drag to resize

SceneViewScreenToLocationAsync Method

Async method to convert a screen point relative to the upper left of the SceneView into a location accounting for 3D features within the Scene.

Namespace:  Esri.ArcGISRuntime.UI.Controls
Assembly:  Esri.ArcGISRuntime.WPF (in Esri.ArcGISRuntime.WPF.dll) Version: 100.11.0
Syntax
public Task<MapPoint> ScreenToLocationAsync(
	Point screenPoint
)

Parameters

screenPoint
Type: System.WindowsPoint
Screen point relative to the upper left

Return Value

Type: TaskMapPoint
A MapPoint on the base surface of the Scene, if this view is initialized and has a loaded scene; otherwise null. This may also return null if the given screenPoint is not on the base surface at all (for example, if the sky is drawn at those coordinates).
Remarks
This method checks for intersection between the input screen point and visible 3D features on the Scene. It returns a point with X, Y and Z values matching the intersection point. If the input point does not intersect a visible 3D feature, the Scene surface is used to retrieve the point values. If the input point does not intersect the Scene surface or any visible 3D features a null value is returned. This method differs from ScreenToBaseSurface(Point) in that the latter only uses the Scene Surface and ignores visible 3D features. The algorithm is inherently slower than ScreenToBaseSurface and is therefore an async operation.
See Also