public override void SetParameters(ParameterCollection parameters) { // Assign to properties base.SetParameters(parameters); // Inject helper code into ChildContent if (ChildContent is RenderFragment originalChildContent) { ChildContent = builder => { var temp = Helpers.PARENT; Helpers.PARENT = this; originalChildContent(builder); Helpers.PARENT = temp; }; } if (!parameters.TryGetValue(nameof(Parent), out object _)) { UILog.Write("WARNING", $"No parent assigned to '{this}'"); } UpdateLayoutCss(); UILog.Write("LIFECYCLE", $"SetParameters '{this}' (parent is '{Parent}')"); }
protected override void BuildRenderTree(RenderTreeBuilder builder) { base.BuildRenderTree(builder); UILog.Write("LIFECYCLE", $"BuildRenderTree '{this}'"); _debugRenderCount = !_debugRenderCount; }
public virtual void Dispose() { UILog.Write("LIFECYCLE", $"Dispose '{this}'"); }
protected override void OnInit() { UILog.Write("LIFECYCLE", $"Initialize '{this}'"); }