コード例 #1
0
        /// <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();
     }
 }
コード例 #3
0
        /// <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();
            }
        }