ArcGIS 10怎么开发WPF程序
http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#/How_to_host_an_ArcGIS_Engine_MapControl_in_a_WPF_application/0001000004pp000000/
ArcGIS的官方帮助文档,很详细~~~~
如果你在开发中遇到下面两个问题,这个可能会有用:
1.ArcGIS version not specified. You must call RuntimeManager.Bind before creating any ArcGIS componen
解决方法:打开program.cs
把ESRI.ArcGIS.RuntimeManager.Bind(ESRI.ArcGIS.ProductCode.EngineOrDesktop);
这句放到Application.SetCompatibleTextRenderingDefault(false);和Application.Run(new Form1());之间
2.ArcGIS product not specified. You must first bind to an ArcGIS version prior to using any ArcGIS components.
这个一般是在开发WPF程序时出现的问题,首先你要确认你有没有装上ArcGIS的AERuntime,如果没有,去装一个,再去我在文章开头提供的那个官方帮助比较一下你有没有写错什么东西,如果还不行,就很可能是你的engine没有许可,因为我的就是这个情况,只给desktop授权了,engine没有授权,所以会报错,重新授权下就OK了