/// <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();
     }
 }
Example #2
0
 public void Dispose()
 {
     Tab.ActiveItemChanged -= Tab_ActiveItemChanged;
     Pages.Clear();
 }