一、简介
这篇博客介绍region,但是region,在之前的博客中,我们一直在用。此外,流程图,已经把架构搞明白了,请慢慢看我的流程图啊。
目录:
二、举例
1、RegionContext工程
1.1、App.xaml、App.xaml.cs、MainWindow.xaml.cs(省略,与之前系列的相同)。
1.2、Bootstrapper.cs:
using Microsoft.Practices.Unity;
using ModuleA;
using Prism.Modularity;
using Prism.Unity;
using RegionContext.Views;
using System.Windows;
namespace RegionContext
{
class Bootstrapper : UnityBootstrapper
{
protected override DependencyObject CreateShell()
{