internal void RemoveBorderAndContent() { if (actual_border != null) { Diagram.RemoveNodeBorderFragment(actual_border); } if (content != null) { Diagram.RemoveNodeContentFragment(content); } }
protected override void OnAfterRender(bool first_render) { if (Deleted) { Diagram.RemoveNodeBorderFragment(actual_border); Diagram.RemoveNodeContentFragment(content); } if (NodeLibrary != null) { OffCanvas = false; (X, Y, _, _) = NodeLibrary.GetPosition(this); content_reference?.TriggerStateHasChanged(); } else { content_reference?.TriggerStateHasChanged(); node_border_reference?.TriggerStateHasChanged(); } base.OnAfterRender(first_render); }