Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
using System.Windows;
using MaterialDesign.Dialog.Example.Services;
using MaterialDesign.Dialog.Example.ViewModels;
using MaterialDesign.Dialog.Example.Views;
using Prism.Unity;
namespace MaterialDesign.Dialog.Example
{
public class Bootstrapper : UnityBootstrapper
{
protected override DependencyObject CreateShell()
{
return new Shell();
}
protected override void InitializeShell()
{
base.InitializeShell();
DialogService dialogService = new DialogService("MessageDialogHost");
Shell shell = Shell as Shell;
App.Current.MainWindow = shell;
shell.DataContext = new ShellViewModel(dialogService);
shell.Show();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment