0 out of 2 rated this helpful - Rate this topic

Map.TransformCenter Property

April 12, 2014

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)
'Declaration
<TypeConverterAttribute(GetType(MapPointConverter))> _
Public Property TransformCenter As Point

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.

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.

Windows Phone OS

Supported in: 8.1, 8.0

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.