MapControl.TryRotateAsync(Double) MapControl.TryRotateAsync(Double) MapControl.TryRotateAsync(Double) MapControl.TryRotateAsync(Double) Method

Definition

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

public : IAsyncOperation<Platform::Boolean> TryRotateAsync(double degrees)
IAsyncOperation<bool> TryRotateAsync(double degrees) const;
public IAsyncOperation<bool> TryRotateAsync(Double degrees)
Public Function TryRotateAsync(degrees As Double) As IAsyncOperation(Of bool)

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.

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.