private void UserControl_Unloaded(object sender, RoutedEventArgs e) { if (printDocument != null) { printDocument.Dispose(); printDocument = null; } }
public void Dispose() => _printDocument.Dispose();