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