コード例 #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);
 }
コード例 #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);
 }
コード例 #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);
 }
コード例 #4
0
 public IHostedUpbeatBuilder SetDefaultViewModelLocators(bool allowUnresolvedDependencies = false)
 {
     MappingRegisterers.Add(
         upbeatStack => upbeatStack.SetDefaultViewModelLocators(allowUnresolvedDependencies));
     return(this);
 }