/// <summary> /// Seek the elements. /// </summary> public void DetachElements() { panel.Children.Clear(); panel = null; if (stripLines != null) { stripLines.Clear(); } }
/// <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; }
/// <summary> /// Seek the elements. /// </summary> public void DetachElements() { panel = null; if (lineRecycler != null) { lineRecycler.Clear(); } if (contentControlRecycler != null) { contentControlRecycler.Clear(); } }