-
-
Notifications
You must be signed in to change notification settings - Fork 233
/
App.xaml.cs
37 lines (33 loc) · 1.23 KB
/
App.xaml.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
using Prism;
using Prism.DryIoc;
using Prism.Ioc;
using Xamarin.Forms;
using Prism.Modularity;
using XDSPrismForms.Views;
namespace XDSPrismForms
{
public partial class App : PrismApplication
{
public App(IPlatformInitializer initializer = null) : base(initializer)
{
InitializeComponent();
}
protected override void OnInitialized()
{
NavigationService.NavigateAsync($"NavigationPage/MainPage");
}
protected override void RegisterTypes(IContainerRegistry containerRegistry)
{
containerRegistry.RegisterForNavigation<NavigationPage>();
containerRegistry.RegisterForNavigation<MainPage>();
containerRegistry.RegisterForNavigation<ModulesPage>();
}
protected override void ConfigureModuleCatalog(IModuleCatalog moduleCatalog)
{
moduleCatalog.AddModule<CommandingModule.CommandingModule>();
moduleCatalog.AddModule<EventsModule.EventsModule>(InitializationMode.OnDemand);
moduleCatalog.AddModule<NavigationModule.NavigationModule>(InitializationMode.OnDemand);
moduleCatalog.AddModule<DialogModule.DialogModule>(InitializationMode.WhenAvailable);
}
}
}