public void RemoveFromContainer() { if (ViewContainer != null) { ViewContainer.RemoveControl(this); } }