天天看點

VS2010下WPF開發ARCGIS ENGINE 10的帶Ribbon控件項目

題目好長,但是集目前最新的工具于一身。。VS是最新的2010版,不過用的是.net3.5,最熱門的WPF/Silverlight,還有新的arcgis10,還有非常熱的Ribbon控件。。。

1、安裝VS2010。我用的是旗艦版。位址自己找去,百度上一搜就有。

2、安裝arcgis engine 10。

3、安裝arcgis api for wpf 2.0.

4、建立一個Ribbon application。

5、添加ESRI.ArcGIS.Client引用。最好把arcgis api for wpf 2.0裡面的幾個dll都引用過來。在安裝目錄下可以找到。

6、在工具箱中拉一個map控件到主界面上。

8、添加map的圖層:

    <esri:Map x:Name="MyMap" >

<esri:ArcGISTiledMapServiceLayer

ID="StreetMapLayer"

Url="http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_StreetMap_World_2D/MapServer"/>

</esri:Map>

9、運作。