Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Iyemon-018/43bbb1b00cc5e305126b27f38a4f7a25 to your computer and use it in GitHub Desktop.
Save Iyemon-018/43bbb1b00cc5e305126b27f38a4f7a25 to your computer and use it in GitHub Desktop.
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