ArcGIS Runtime SDK for WPF 初始化

2021-06-16 05:05

阅读:704

标签:string   ring   sage   逻辑   mes   local   shu   管理   current   

安装包

管理nuget包

Esri.ArcGISRuntime.WPF

也许还需要

Esri.ArcGISRuntime.Hydrography
Esri.ArcGISRuntime.LocalServices
...

初始化arcgis

/// 
/// App.xaml 的交互逻辑
/// 
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了

ArcGIS Runtime SDK for WPF 初始化

标签:string   ring   sage   逻辑   mes   local   shu   管理   current   

原文地址:https://www.cnblogs.com/Lulus/p/10352563.html


评论


亲,登录后才可以留言!