/// <summary>
        /// Seek the elements.
        /// </summary>
        public void DetachElements()
        {
            panel.Children.Clear();
            panel = null;

            if (stripLines != null)
            {
                stripLines.Clear();
            }
        }
Пример #2
0
 /// <summary>
 /// To clear the children of <see cref="MultiLevelLabelsPanel"/>.
 /// </summary>
 internal void DetachElements()
 {
     labelsPanel = null;
     if (textBlockRecycler != null)
     {
         textBlockRecycler.Clear();
     }
     if (borderRecycler != null)
     {
         borderRecycler.Clear();
     }
     if (polylineRecycler != null)
     {
         polylineRecycler.Clear();
     }
 }
        /// <summary>
        /// Seek the elements.
        /// </summary>
        public void DetachElements()
        {
            if (MainAxisLine != null && labelsPanels != null && labelsPanels.Children != null &&
                labelsPanels.Children.Contains(MainAxisLine))
            {
                labelsPanels.Children.Remove(MainAxisLine);
            }
            if (majorTicksRecycler != null)
            {
                majorTicksRecycler.Clear();
            }

            if (minorTicksRecycler != null)
            {
                minorTicksRecycler.Clear();
            }

            labelsPanels = null;
        }
Пример #4
0
        /// <summary>
        /// Seek the elements.
        /// </summary>
        public void DetachElements()
        {
            panel = null;

            if (lineRecycler != null)
            {
                lineRecycler.Clear();
            }
            if (contentControlRecycler != null)
            {
                contentControlRecycler.Clear();
            }
        }