安装包
管理nuget包
Esri.ArcGISRuntime.WPF
也许还需要
Esri.ArcGISRuntime.Hydrography
Esri.ArcGISRuntime.LocalServices
...
初始化arcgis
/// <summary>
/// App.xaml 的交互逻辑
/// </summary>
public partial class App : Application
{
private void Application_Startup(object sender, StartupEventArgs e)
{
try
{
Esri.ArcGISRuntime.ArcGISRuntimeEnvironment.Initialize();
}
catch (Exception ex)
{
// Show the message and shut down
MessageBox.Show(string.Format("There was an error that prevented initializing the runtime. {0}", ex.Message));
Current.Shutdown();
}
}
}
即可正常使用ArcGIS Runtime SDK了