示例#1
0
 public void RegisterTypes(IContainerRegistry containerRegistry)
 {
     containerRegistry.RegisterSingleton <IDatabasePathProvider, DatabasePathProvider>();
     containerRegistry.RegisterSingleton <IDeviceService, DeviceService>();
     containerRegistry.RegisterSingleton <IMessage, MessageIOS>();
 }
示例#2
0
 protected override void RegisterTypes(IContainerRegistry containerRegistry)
 {
     //Instance and Singleton
     containerRegistry.RegisterSingleton <ICardList, CardList>();
 }
示例#3
0
 protected override void RegisterTypes(IContainerRegistry containerRegistry)
 {
     RegisterDependencies(containerRegistry);
     RegisterViews(containerRegistry);
 }
示例#4
0
 public void RegisterTypes(IContainerRegistry containerRegistry)
 {
     containerRegistry.RegisterForNavigation <LoginView>();
     containerRegistry.RegisterForNavigation <SignupView>();
 }
示例#5
0
 public void RegisterTypes(IContainerRegistry containerRegistry)
 {
 }
示例#6
0
 protected override void RegisterTypes(IContainerRegistry containerRegistry)
 {
     containerRegistry.RegisterSingleton <ICleaner, GcCleaner>();
     containerRegistry.RegisterSingleton <IViewProvider, ViewProvider>();
 }
示例#7
0
 /// <summary>
 /// Used to register types with the container that will be used by your application.
 /// </summary>
 protected abstract void RegisterTypes(IContainerRegistry containerRegistry);
示例#8
0
 /// <inheritdoc/>
 public void RegisterTypes(IContainerRegistry containerRegistry)
 {
     containerRegistry.RegisterSingleton <IMediationService, MediationService>();
 }
示例#9
0
 protected override void RegisterTypes(IContainerRegistry containerRegistry)
 {
     containerRegistry.RegisterForNavigation <MainPage>();
     containerRegistry.RegisterForNavigation <HomePage>();
     containerRegistry.RegisterForNavigation <DataEntryPage>();
 }
示例#10
0
 public void RegisterTypes(IContainerRegistry containerRegistry)
 {
     containerRegistry.RegisterSingleton <IWebScrapeService, HtmlAgilityPackWebScrape>();
 }
示例#11
0
 public void RegisterTypes(IContainerRegistry containerRegistry)
 {
     containerRegistry.Register <IPeopleService, PeopleService>();
 }
示例#12
0
 protected override void RegisterTypes(IContainerRegistry containerRegistry)
 {
     RegisterViewsForNavigation(containerRegistry);
     RegisterServices(containerRegistry);
     containerRegistry.RegisterForNavigation <DataManagerPage, DataManagerPageViewModel>();
 }
示例#13
0
 public static IContainerRegistry RegisterLogglyHttpLogger <TOptions>(this IContainerRegistry container)
     where TOptions : ILogglyOptions
 {
     container.RegisterSingleton <ILogglyOptions, TOptions>();
     return(RegisterInternal <LogglyHttpLogger>(container));
 }
示例#14
0
 public void RegisterTypes(IContainerRegistry containerRegistry)
 {
     containerRegistry.RegisterForNavigation <ClipBoardWatcherView, ClipBoardWatcherViewViewModel>();
 }
示例#15
0
 protected override void RegisterTypes(IContainerRegistry containerRegistry)
 {
 }
 public void RegisterTypes(IContainerRegistry containerRegistry)
 {
     containerRegistry.Register <TimePickerView>();
 }
示例#17
0
 public void RegisterTypes(IContainerRegistry containerRegistry)
 {
     containerRegistry.Register <DisplayModel>();
     containerRegistry.Register <DisplayViewModel>();
 }
示例#18
0
 public static IContainer GetContainer(this IContainerRegistry containerRegistry)
 {
     return(((IContainerExtension <IContainer>)containerRegistry).Instance);
 }
示例#19
0
 public void RegisterTypes(IContainerRegistry containerRegistry)
 {
     containerRegistry.Register <IStatusBarViewModel, StatusBarViewModel>();
     containerRegistry.Register <IStatusBarView, StatusBarView>();
 }
示例#20
0
 protected virtual void AddToContainer(IContainerRegistry containerRegistry, IConfiguration configuration)
 {
 }
示例#21
0
 protected override void RegisterTypes(IContainerRegistry containerRegistry)
 {
     containerRegistry.RegisterSingleton <IMessageService, MessageService>();
 }
示例#22
0
 protected override void RegisterTypes(IContainerRegistry containerRegistry)
 {
     containerRegistry.RegisterSingleton <IApplicationCommands, ApplicationCommands>();
 }
示例#23
0
 public void RegisterTypes(IContainerRegistry containerRegistry)
 {
     //containerRegistry.Register<MainWindowView>();
 }
示例#24
0
 public void RegisterTypes(IContainerRegistry container)
 {
     container.GetContainer().RegisterType <IDeviceScreenSizeService, DeviceScreenSizeService>();
 }
示例#25
0
 public void RegisterTypes(IContainerRegistry containerRegistry)
 {
     // Register any platform specific implementations
 }
示例#26
0
        public void RegisterTypes(IContainerRegistry containerRegistry)
        {
            ViewModelLocationProvider.Register <Views.Notes, ViewModels.NotesViewModel>();

            containerRegistry.RegisterForNavigation <Views.Notes, ViewModels.NotesViewModel>();
        }
 protected override void RegisterTypes(IContainerRegistry containerRegistry)
 {
     containerRegistry.RegisterForNavigation <NavigationPage>();
     containerRegistry.RegisterForNavigation <MainPage, MainPageViewModel>();
 }
示例#28
0
 protected override void RegisterTypes(IContainerRegistry containerRegistry)
 {
     containerRegistry.RegisterSingleton <ISetting, SettingEntity>();
     containerRegistry.RegisterDialog <Setting>();
     containerRegistry.Register <IMainDomain, MainViewDomain>();
 }
示例#29
0
 private void RegisterViews(IContainerRegistry containerRegistry)
 {
     containerRegistry.RegisterForNavigation <NavigationPage>();
     NavigationMapper.Instance.Register(containerRegistry, Assembly.GetExecutingAssembly());
 }
 /// <summary>
 /// Registers an object for navigation with the ViewModel type to be used as the DataContext.
 /// </summary>
 /// <typeparam name="TView">The Type of object to register as the view</typeparam>
 /// <typeparam name="TViewModel">The ViewModel to use as the DataContext for the view</typeparam>
 /// <param name="containerRegistry"></param>
 /// <param name="name">The unique name to register with the view</param>
 public static void RegisterForNavigation <TView, TViewModel>(this IContainerRegistry containerRegistry, string name = null)
 {
     containerRegistry.RegisterForNavigationWithViewModel <TViewModel>(typeof(TView), name);
 }