Share via


MapControl.TryRotateAsync(Double) Method

Definition

Starts an asynchronous operation to rotate the map's camera from its current position.

public:
 virtual IAsyncOperation<bool> ^ TryRotateAsync(double degrees) = TryRotateAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<bool> TryRotateAsync(double const& degrees);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<bool> TryRotateAsync(double degrees);
function tryRotateAsync(degrees)
Public Function TryRotateAsync (degrees As Double) As IAsyncOperation(Of Boolean)

Parameters

degrees
Double

double

The degrees that the map's camera rotates in a horizontal clockwise direction.

Returns

Contains the results of the operation: true if the operation completed successfully; otherwise, false.

Attributes

Remarks

Consider this method when you want to replace the default UI control with your own.

Heading values greater than 360 degrees are normalized to their equivalent 0-360 degree value.

Applies to