DependentViewInfo CreateDependentViewInfo(DependentViewAttribute attribute)
        {
            var info = new DependentViewInfo();

            info.Region = attribute.Region;
            info.View   = _container.Resolve(attribute.Type);
            return(info);
        }
Ejemplo n.º 2
0
 private DependentViewInfo CreateDependentViewInfo(DependentViewAttribute attribute)
 {
     return(new DependentViewInfo
     {
         Region = attribute.Region,
         View = container.Resolve(attribute.Type)
     });
 }
        private DependentViewInfo CreateDependentViewInfo(DependentViewAttribute attribute)
        {
            // Create view instance
            var info = new DependentViewInfo
            {
                RegionName = attribute.RegionName, View = _container.Resolve(attribute.DependentViewType)
            };

            return(info);
        }
Ejemplo n.º 4
0
        private DependentViewInfo GetDependentView(DependentViewAttribute attribute)
        {
            var info = new DependentViewInfo
            {
                TargetRegionName = attribute.TargetRegionName,
                View             = attribute.ViewType != null?_containerProvider.Resolve(attribute.ViewType) : null
            };

            return(info);
        }
        private DependentViewInfo CreateDependentViewInfo(DependentViewAttribute attribute)
        {
            var info = new DependentViewInfo();

            info.TargetRegionName = attribute.TargetRegionName;

            if (attribute.Type != null)
            {
                info.View = Activator.CreateInstance(attribute.Type);
            }

            return(info);
        }
 public DependentViewInfo(DependentViewAttribute att, IContainerExtension container)
 {
     Region = att.Region;
     View   = container.Resolve(att.Type);
 }