void OnRemoveSubviews(object sender, EventArgs e) { if (parentView != null) { parentView.RemoveFromSuperview(); parentView = null; } }
void OnRemoveSubviews(object sender, EventArgs e) { if (parentView != null) { parentView.RemoveFromSuperview(); // This fixes the problem - 1st approach //parentView.Dispose (); parentView = null; } }