PostIt: register dialog pages in DI for ViewLocator resolution
This commit is contained in:
parent
600bb81be1
commit
6d9bb82b61
1 changed files with 8 additions and 0 deletions
|
|
@ -175,6 +175,14 @@ public partial class App : Application
|
||||||
services.AddTransient<HomePage>();
|
services.AddTransient<HomePage>();
|
||||||
services.AddTransient<SignaturePage>();
|
services.AddTransient<SignaturePage>();
|
||||||
services.AddTransient<CirclesPage>();
|
services.AddTransient<CirclesPage>();
|
||||||
|
// Dialogs (modal-light pages): the ViewLocator resolves
|
||||||
|
// them when a caller pushes a PostAclDialogViewModel or
|
||||||
|
// AddCircleMemberDialogViewModel via App.PushPageAsync.
|
||||||
|
// App.PushPageAsync overwrites the page's DataContext with
|
||||||
|
// the caller-built VM, so the parameterless ctor is enough
|
||||||
|
// here — the parametrised ctors stay for direct test wiring.
|
||||||
|
services.AddTransient<PostAclDialog>();
|
||||||
|
services.AddTransient<AddCircleMemberDialog>();
|
||||||
|
|
||||||
// ViewModels
|
// ViewModels
|
||||||
services.AddSingleton(settings);
|
services.AddSingleton(settings);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue