Exemplo n.º 1
0
        /// <summary>
        /// Removes the panel's children when label's start and end are equal
        /// </summary>
        private void CheckLabelRange()
        {
            if (Axis.MultiLevelLabelsBorderType == BorderType.Brace)
            {
                polylineRecycler.Remove(polylineRecycler[currentBracePos]);
                polylineRecycler.Remove(polylineRecycler[currentBracePos + 1]);
            }
            else
            {
                borderRecycler.Remove(borderRecycler[currentBorderPos]);
            }
            var textBlock = textBlockRecycler.Where(txtBlock => txtBlock.Tag == currentLabel).First();

            textBlockRecycler.Remove(textBlock);
        }