var services = new ServiceCollection();
services.AddSingleton<IDialogService>(x => new DialogService(
new DialogManager(
viewLocator: new StrongViewLocator(),
dialogFactory: new DialogFactory().AddMessageBox().AddFluent(FluentMessageBoxType.ContentDialog)),
viewModelFactory: z => x.GetService(z)));
AppServices = services.BuildServiceProvider();
var services = new ServiceCollection();
services.AddSingleton<IDialogService>(x => new DialogService(
new DialogManager(
viewLocator: new StrongViewLocator(),
dialogFactory: new DialogFactory().AddMessageBox().AddFluent(FluentMessageBoxType.ContentDialog)),
viewModelFactory: z => x.GetService(z)));
AppServices = services.BuildServiceProvider();