public void BoundViewSize(string path, ContextObject context) { _pdfControl = new PdfViewerControl(); var desiredSize = _pdfControl.GetDesiredControlSizeByFirstPage(path); context.SetPreferredSizeFit(desiredSize, 0.8); }
public void Prepare(string path, ContextObject context) { _context = context; _path = path; var desiredSize = PdfViewerControl.GetDesiredControlSizeByFirstPage(path); context.SetPreferredSizeFit(desiredSize, 0.8); }
public void Prepare(string path, ContextObject context) { _context = context; _path = path; var desiredSize = PdfViewerControl.GetDesiredControlSizeByFirstPage(path); context.SetPreferredSizeFit(desiredSize, 0.6); context.PreferredSize = new Size(context.PreferredSize.Width, context.PreferredSize.Height + 32); }