ArcGIS Runtime SDK for WPF 初始化


安装包

管理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了


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM