public IRxHostElement Run() { _component = _component ?? InitializeComponent(RxApplication.Instance.ComponentLoader.LoadComponent <T>()); RxApplication.Instance.ComponentLoader.ComponentAssemblyChanged += OnComponentAssemblyChanged; OnLayout(); if (ContainerPage == null) { throw new InvalidOperationException($"Component {_component.GetType()} doesn't render a page as root"); } return(this); }
public void Run() { _component = _component ?? RxApplication.Instance.ComponentLoader.LoadComponent <T>(); if (_component != null) { _componentInitializer?.Invoke((T)_component); } RxApplication.Instance.ComponentLoader.ComponentAssemblyChanged += OnComponentAssemblyChanged; OnLayout(); if (_componentPage == null) { throw new InvalidOperationException($"Component {_component.GetType()} doesn't render a page as root"); } }