public void UnlinkNodeControl() { if (ParentControl != null) { ParentControl.TextArea.Children.Remove(this); //ParentControl = null; } } }