private void RemoveContent(ContentWrapper contentWrapper) { Contract.Requires(contentWrapper != null); Util.ThrowUnless(!_content.Contains(contentWrapper), "The content wrapper should already be removed"); Util.ThrowUnless(_contentElement != null && _contentElement.Children.Contains(contentWrapper)); contentWrapper.ClearChild(); _contentElement.Children.Remove(contentWrapper); }