5 references to CanOnlyHaveOneChild
PresentationFramework (5)
System\Windows\Controls\AdornedElementPlaceholder.cs (1)
62
throw new ArgumentException(SR.Format(SR.
CanOnlyHaveOneChild
, this.GetType(), value.GetType()));
System\Windows\Controls\Decorator.cs (1)
70
throw new ArgumentException(SR.Format(SR.
CanOnlyHaveOneChild
, this.GetType(), value.GetType()));
System\Windows\Controls\RichTextBox.cs (1)
158
throw new ArgumentException(SR.Format(SR.
CanOnlyHaveOneChild
, this.GetType(), value.GetType()));
System\Windows\Documents\PageContent.cs (2)
178
throw new InvalidOperationException(SR.Format(SR.
CanOnlyHaveOneChild
, typeof(PageContent), value));
271
throw new InvalidOperationException(SR.Format(SR.
CanOnlyHaveOneChild
, typeof(PageContent), value));