/// <summary> /// Creates a new <see cref="T:System.Windows.Controls.UIElementCollection"/>. /// </summary> /// <param name="logicalParent">The logical parent element of the collection to be created.</param> /// <returns> /// An ordered collection of elements that have the specified logical parent. /// </returns> protected sealed override UIElementCollection CreateUIElementCollection(FrameworkElement logicalParent) { children = new UIChildrenCollection(this, logicalParent); return(children); }
/// <summary> /// Creates a new <see cref="T:System.Windows.Controls.UIElementCollection"/>. /// </summary> /// <param name="logicalParent">The logical parent element of the collection to be created.</param> /// <returns> /// An ordered collection of elements that have the specified logical parent. /// </returns> protected sealed override UIElementCollection CreateUIElementCollection(FrameworkElement logicalParent) { children = new UIChildrenCollection(this, logicalParent); return children; }
/// <summary> /// Creates a new <see cref="T:System.Windows.Controls.UIElementCollection"/>. /// </summary> /// <param name="logicalParent">The logical parent element of the collection to be created.</param> /// <returns> /// An ordered collection of elements that have the specified logical parent. /// </returns> protected sealed override UIElementCollection CreateUIElementCollection(FrameworkElement logicalParent) { children = new UIChildrenCollection(this, logicalParent); children.IsAddingMany = inBatchAdd; return(children); }
/// <summary> /// Creates a new <see cref="T:System.Windows.Controls.UIElementCollection"/>. /// </summary> /// <param name="logicalParent">The logical parent element of the collection to be created.</param> /// <returns> /// An ordered collection of elements that have the specified logical parent. /// </returns> protected sealed override UIElementCollection CreateUIElementCollection(FrameworkElement logicalParent) { children = new UIChildrenCollection(this, logicalParent); children.IsAddingMany = inBatchAdd; return children; }