ArcGIS Runtime SDK for WPF 初始化

安裝包

管理nuget包c#

Esri.ArcGISRuntime.WPF

也許還須要code

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了orm

相關文章
相關標籤/搜索