ArcGIS Pro 2.6 API Reference Guide
LookAtAsync Method

ArcGIS.Desktop.Mapping Namespace > MapView Class : LookAtAsync Method
The point to center the view at.
The amount of time to navigate the view to the new camera position. If null it uses the transition time property set for the application.
Center the view at a given point.
Syntax
Public Function LookAtAsync( _
   ByVal mapPoint As MapPoint, _
   Optional ByVal duration As Nullable(Of TimeSpan) _
) As Task(Of Boolean)

Parameters

mapPoint
The point to center the view at.
duration
The amount of time to navigate the view to the new camera position. If null it uses the transition time property set for the application.

Return Value

True if the navigation is completed, false if it was interrupted by another view navigation.
Remarks
In 2D this will center the view on the given point, it will not adjust the Scale or Heading of the view. In 3D this will maintain X, Y, and Z for the camera and adjust the Heading and Pitch so that the provided point is at the center of the view.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 7

See Also

Reference

MapView Class
MapView Members