?
Step1. 新增 Windows Phone 應用程式專案。
<a href="http://files.dotblogs.com.tw/charles/1311/WindwosphoneScrollViewer_E595/SNAGHTML3fbb10.png"></a>
Step2. 指定應用程式使用 ID_CAP_MAP 功能
方案總管 -->Properties 資料夾--> WMAppManifest.xml --> 功能 --> 勾選ID_CAP_MAP。
Step3. 加入地圖的命名空間。
<a href="http://files.dotblogs.com.tw/charles/1311/WindwosphoneScrollViewer_E595/image_10.png"></a>
Step4. 畫面設計
maps:Map-->Name="map",Heading="0",Center="25.0405,121.5146",ZoomLevel="10",Margin="0,61,0,10"
Button-->Name="btCenter",Content="置中",Margin="0,-11,339,546"
Button-->Name="btAnom",Content="縮放動畫",Margin="106,-11,202,546
XAML 程式碼:
Step5. 産生btCenter / btAnom 按鈕的 Click 事件。
Step6. btCenter / btAnom 的 Click 事件内容。
<a href="http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj207895%28v=vs.105%29.aspx" target="_blank">Map.SetView Method (GeoCoordinate, Double, Double, MapAnimationKind)</a>
<a href="http://Files.Dotblogs.com.tw/charles/1311/201311241302180.rar" target="_blank">Map 縮放.rar</a>
<a target="_top" href="http://s1.dotblogs.com.tw/admentorserve.aspx?type=click&z=18&a=11"></a>
posted on 2013/11/24 01:28 |
閱讀數 : 965
|
<a href="http://www.dotblogs.com.tw/Bookmarks/Content.aspx?Urlid=11171826" target="_blank">2 人推薦</a>
<a>我要推薦</a>
<a href="/charles/archive/2013/11/24/131041.aspx#feedback">Add Comment</a>
| 文章分類 [
<a href="/charles/category/9595.aspx">Windows Phone</a>
]
<a>訂閱</a>