Esempio n. 1
0
 public static IViewAssociationBuilder AssociateStyle <TViewModel>(this IViewResolverAssociateAware service, Style style)
 {
     if (service == null)
     {
         throw new ArgumentNullException(nameof(service));
     }
     return(service.Associate(typeof(StyleResolver), typeof(TViewModel), style));
 }
Esempio n. 2
0
 public static IViewAssociationBuilder AssociateTemplate <TViewModel>(this IViewResolverAssociateAware service, ResourceDescriptor descriptor)
 {
     if (service == null)
     {
         throw new ArgumentNullException(nameof(service));
     }
     return(service.Associate(typeof(TemplateResolver), typeof(TViewModel), descriptor));
 }
Esempio n. 3
0
 public static IViewAssociationBuilder AssociateContainer <TViewModel>(this IViewResolverAssociateAware service, ItemContainerTemplate template)
 {
     if (service == null)
     {
         throw new ArgumentNullException(nameof(service));
     }
     return(service.Associate(typeof(ContainerResolver), typeof(TViewModel), template));
 }