Map.SetView Method (LocationRectangle, Thickness, MapAnimationKind)

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Sets the map view to the specified geographical region with the specified margin. The view change uses the specified animation.

Namespace: Microsoft.Phone.Maps.Controls
Assembly: Microsoft.Phone.Maps (in Microsoft.Phone.Maps.dll)

Syntax

Public Sub SetView ( _
    boundingRectangle As LocationRectangle, _
    desiredMargins As Thickness, _
    animationKind As MapAnimationKind _
)
public void SetView(
    LocationRectangle boundingRectangle,
    Thickness desiredMargins,
    MapAnimationKind animationKind
)

Parameters

Version Information

Windows Phone OS

Supported in: 8.1, 8.0

See Also

Reference

Map Class

SetView Overload

Microsoft.Phone.Maps.Controls Namespace