/// <summary> /// Return child at the specified index from a collection of child elements. /// </summary> /// <param name="index">Zero-based index of the requested child element.</param> /// <returns>Requested child element.</returns> protected override Visual GetVisualChild(int index) { if (index >= _children.ExternalCount) { return(_children.GetInternalChild(index - _children.ExternalCount)); } else { return(_children[index]); } }