You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
556 B
23 lines
556 B
using System;
|
|
using Microsoft.Practices.Prism.UnityExtensions;
|
|
using Microsoft.Practices.Unity;
|
|
using System.Windows;
|
|
|
|
namespace Samples
|
|
{
|
|
public class Bootstrapper : UnityBootstrapper
|
|
{
|
|
protected override DependencyObject CreateShell()
|
|
{
|
|
return Container.Resolve<Shell>();
|
|
}
|
|
|
|
protected override void InitializeShell()
|
|
{
|
|
base.InitializeShell();
|
|
|
|
App.Current.MainWindow = (Shell)Shell;
|
|
App.Current.MainWindow.Show();
|
|
}
|
|
}
|
|
}
|
|
|