/// <summary> /// Helper function that clears the page collection and also the pages attached to the "visual root". /// </summary> private void ClearPageCollection() { lock (PrintSync) { PageCollection.Clear(); PrintCanvas.Children.Clear(); } }
public void Dispose() { Tab.ActiveItemChanged -= Tab_ActiveItemChanged; Pages.Clear(); }