private void VerifyWriteAccess() { MetaPanel panel = _visualParent as MetaPanel; if ((panel != null) && panel.IsDataBound) throw new InvalidOperationException("Cannot modify Children collection of a data bound MetaPanel."); }