private void RemoveElement() { if (!IsInserted) return; HtmlPage.Document.Body.RemoveChild(HtmlElement); htmlElement = null; LayoutUpdated -= OnLayoutUpdated; } #endregion