Map.TransformCenter Property

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

Gets or sets a point to which the logical center of the Map is transformed.

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

Syntax

<TypeConverterAttribute(GetType(MapPointConverter))> _
Public Property TransformCenter As Point
[TypeConverterAttribute(typeof(MapPointConverter))]
public Point TransformCenter { get; set; }

Property Value

Type: System.Windows..::.Point
A point to which the logical center of the Map is transformed. Use a value between 0 and 1 (but not 0 or 1) for the X and Y properties of the Point.

Remarks

The TransformCenter represents a point around which the map rotates – for example, when you change the value of the Heading property. Consider setting the Y value of the TransformCenter to a value greater than 0.5 when the map is tilted (that is, when the Pitch is greater than 0). This moves the logical center closer to the user (that is, closer to the bottom of the screen) and shows the user more of what’s in the distance when the map is rotated.

After you set the value of the TransformCenter property for the Map, the Center property continues to return the previous center until you set the Center to the same value as the TransformCenter.

Version Information

Windows Phone OS

Supported in: 8.1, 8.0

See Also

Reference

Map Class

Microsoft.Phone.Maps.Controls Namespace