Esempio n. 1
0
 public IHostedUpbeatBuilder MapViewModel <TParameters, TViewModel, TView>(Func <IUpbeatService, TParameters, IServiceProvider, TViewModel> viewModelCreator)
     where TView : UIElement
 {
     MappingRegisterers.Add(
         upbeatStack => upbeatStack.MapViewModel <TParameters, TViewModel, TView>(viewModelCreator));
     return(this);
 }
Esempio n. 2
0
 public IHostedUpbeatBuilder MapViewModel <TParameters, TUpbeatViewModel, TView>(bool allowUnresolvedDependencies = false)
     where TView : UIElement
 {
     MappingRegisterers.Add(
         upbeatStack => upbeatStack.MapViewModel <TParameters, TUpbeatViewModel, TView>(allowUnresolvedDependencies));
     return(this);
 }
Esempio n. 3
0
 public IHostedUpbeatBuilder SetViewModelLocators(Func <Type, Type> parameterToViewModelLocator,
                                                  Func <Type, Type> parameterToViewLocator,
                                                  bool allowUnresolvedDependencies = false)
 {
     MappingRegisterers.Add(upbeatStack =>
                            upbeatStack.SetViewModelLocators(
                                parameterToViewModelLocator,
                                parameterToViewLocator,
                                allowUnresolvedDependencies));
     return(this);
 }
Esempio n. 4
0
 public IHostedUpbeatBuilder SetDefaultViewModelLocators(bool allowUnresolvedDependencies = false)
 {
     MappingRegisterers.Add(
         upbeatStack => upbeatStack.SetDefaultViewModelLocators(allowUnresolvedDependencies));
     return(this);
 }