forked from Adam--/MvxViewPager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.cs
31 lines (29 loc) · 963 Bytes
/
App.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
// --------------------------------------------------------------------------------------------------------------------
// <summary>
// Defines the App type.
// </summary>
// --------------------------------------------------------------------------------------------------------------------
namespace MvxViewPager.Core
{
using Cirrious.CrossCore.IoC;
using Cirrious.MvvmCross.ViewModels;
using MvxViewPager.Core.ViewModels;
/// <summary>
/// Define the App type.
/// </summary>
public class App : MvxApplication
{
/// <summary>
/// Initializes this instance.
/// </summary>
public override void Initialize()
{
this.CreatableTypes()
.EndingWith("Service")
.AsInterfaces()
.RegisterAsLazySingleton();
//// Start the app with the Main View Model.
this.RegisterAppStart<HomeViewModel>();
}
}
}