public PrintPreviewDialog(FlowDocumentPrintManager printManager)
 {
     InitializeComponent();
     _manager = printManager;
     DataContext = this;
     ChangePage(0);
 }
 public PrintPreviewDialog(FlowDocumentPrintManager printManager)
 {
     InitializeComponent();
     _manager    = printManager;
     DataContext = this;
     ChangePage(0);
 }
 public void PrintPreview(string caption, string flowDocumentXaml)
 {
     FlowDocument flowDocument = XamlReader.Parse(flowDocumentXaml) as FlowDocument;
     FlowDocumentPrintManager manager = new FlowDocumentPrintManager(flowDocument);
     manager.PrintPreview();
 }