예제 #1
0
        protected override void Configure()
        {
            container = new PhoneContainer(this);

            container.RegisterPhoneServices();
            container.RegisterAllViewModelsForPages();

            //container.InstallChooser<PhoneNumberChooserTask, PhoneNumberResult>();
            //container.InstallLauncher<EmailComposeTask>();

            AddCustomConventions();
        }
예제 #2
0
        protected override void Configure()
        {
            container = new PhoneContainer(RootFrame);

            container.RegisterPhoneServices();
            container.RegisterAllViewModelsForPages();
            //container.PerRequest<TabViewModel, TabViewModel>();


            container.RegisterSingleton <IAccountRepository, AccountRepository>();
            container.RegisterSingleton <IPhotoService <PicasaAlbum, PicasaMediaGroup>, GooglePicasaService>();

            container.RegisterSingleton <IStorage <PicasaAccount>, AccountStorage>();


            container.RegisterSingleton <IPhoneService <PhoneAlbum>, Phone.Api.PhoneService>();

            AddCustomConventions();
        }