Last active
April 20, 2018 15:22
-
-
Save AndyWatt83/831fb8e9f66872b9151e1ce861b3a11f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Prism.Mef; | |
using System.ComponentModel.Composition.Hosting; | |
using System.Windows; | |
namespace WireFrame.Shell | |
{ | |
class Bootstrapper : MefBootstrapper | |
{ | |
protected override DependencyObject CreateShell() | |
{ | |
return this.Container.GetExportedValue<Shell>(); | |
} | |
protected override void ConfigureAggregateCatalog() | |
{ | |
base.ConfigureAggregateCatalog(); | |
AggregateCatalog.Catalogs.Add(new AssemblyCatalog(GetType().Assembly)); | |
} | |
protected override void InitializeShell() | |
{ | |
Application.Current.MainWindow.Show(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment