public ComponentAdapterController(RazorComponentRenderer renderer, IComponent component, object rootElement, ComponentAdapterController parent = null)
 {
     Renderer    = renderer;
     Component   = component;
     RootElement = rootElement;
     Parent      = parent;
     //if (parent != null)
     //{
     //    parent.Children.Add(this);
     //}
 }
Exemple #2
0
        public Razor(IServiceProvider serviceProvider, Action <TRazorComponent> parameterSetter = null)
        {
            var renderer = new RazorComponentRenderer(serviceProvider);

            renderer.AddComponent <TRazorComponent, XF.Element>(this, parameterSetter);
        }
Exemple #3
0
        public RazorComponent(Type type, IServiceProvider serviceProvider, Action <object> parameterSetter = null)
        {
            var renderer = new RazorComponentRenderer(serviceProvider);

            _ = renderer.AddComponent <Element>(type, this, parameterSetter);
        }