Created
October 7, 2018 10:08
-
-
Save Iyemon-018/43bbb1b00cc5e305126b27f38a4f7a25 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 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