Esempio n. 1
0
        public void BoundViewSize(string path, ContextObject context)
        {
            _pdfControl = new PdfViewerControl();

            var desiredSize = _pdfControl.GetDesiredControlSizeByFirstPage(path);

            context.SetPreferredSizeFit(desiredSize, 0.8);
        }
Esempio n. 2
0
        public void Prepare(string path, ContextObject context)
        {
            _context = context;
            _path    = path;

            var desiredSize = PdfViewerControl.GetDesiredControlSizeByFirstPage(path);

            context.SetPreferredSizeFit(desiredSize, 0.8);
        }
Esempio n. 3
0
        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);
        }