Ocronet.DynamicVizSegmenter/CustomControls/NumericUpDownTextBox.xaml.cs
/// <summary>
/// Overrides System.Windows.Media.Visual.GetVisualChild(System.Int32), and returns
//     a child at the specified index from a collection of child elements.
/// </summary>
/// <param name="index">The zero-based index of the requested child element in the collection.</param>
/// <returns>The requested child element.</returns>
Overrides System.Windows.Media.Visual.GetVisualChild(System.Int32), and returns
a child at the specified index from a collection of child elements.
Overrides System . Windows . Media . Visual . GetVisualChild ( System . Int32 ) and returns a child at the specified index from a collection of child elements .
protected override Visual GetVisualChild(int index)
        {
            if (index < base.VisualChildrenCount)
                return base.GetVisualChild(index);
            return controls[index - base.VisualChildrenCount];
        }
protected override Visual GetVisualChild ( int index ) { if ( index < base . VisualChildrenCount ) return base . GetVisualChild ( index ) ; return controls [ index - base . VisualChildrenCount ] ; }
Overrides System.Windows.Media.Visual.GetVisualChild(System.Int32), and returns
a child at the specified index from a collection of child elements.
Overrides System . Windows . Media . Visual . GetVisualChild ( System . Int32 ) and returns a child at the specified index from a collection of child elements .
The requested child element.
The requested child element .
index
int
The zero-based index of the requested child element in the collection.
The zero - based index of the requested child element in the collection .