定位地图控制中心下方的地图图标

Position mapicon below mapcontrol center

我需要帮助将 mapicon 定位在 mapcontrol.center 点下方,就像这里的屏幕截图 http://www.windowsphone.com/en-us/store/app/sygic-gps-navigation-maps-poi-route-directions/340f7b71-86bc-4f99-8c59-d4a6126c10b1

使用NormalizedAnchorPoint属性的MapIconclass。它需要一个 Point,x 和 y 的范围从 0 到 1。
根据您的屏幕截图(第 3 个),您应该使用值 (0.5, 1)。

MapIcon icon = new MapIcon();
icon.NormalizedAnchorPoint = new Point(0.5, 1);

我通过使用 'RenderTransform' 选择了一个不同的选项,这使我能够将 'MapControl' 扩展到页面底部下方,从而将 'MapIcon' 和 MapControl 中心移动到更靠近底部的位置就像我想要的那样。它不干净,但有效。