MSDN教程,看完后温习一遍,就算是中文懒人包吧。这是个利用ArcGIS Earth API 写的一个 Tool。
一、下载Prism
如图所示,在NuGet
包中下载对应的Prism
二、设置Bootstrapper
在Prism
框架中,从Bootstraape
r启动程序,新建Bootstrapper
类
using Prism.Unity;
using Prism.Modularity;
using Prism.Regions;
using StressTestToolPrism.Views;
namespace StressTestToolPrism
{
class Bootstrapper : UnityBootstrapper
{
protected override DependencyObject CreateShell()
{
return new ShellView();
}
protected override void InitializeShell()
{
base.InitializeShell();
Application.Current.MainWindow = (Window)this.Shell;
Application.Current.MainWindow.Show();
}
}
}
打开App.cs
, 重写OnStartup
方法
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.L