예제 #1
0
        private static void SetUp(PdfRenderer renderer)
        {
            renderer.AddRenderer(new PanelRenderer());
            renderer.AddRenderer(new TextBlockRenderer());
            renderer.AddRenderer(new BorderRenderer());
            renderer.AddRenderer(new RectangleRenderer());
            renderer.AddRenderer(new EllipseRenderer());
            renderer.AddRenderer(new LineRenderer());
            renderer.AddRenderer(new ImageRenderer());
#if WPF
            renderer.AddRenderer(new ShapeRenderer());
            renderer.AddRenderer(new FrameworkElementRenderer(
                typeof(ContentPresenter), 
                typeof(Control), 
                typeof(ItemsPresenter),
                typeof(System.Windows.Documents.AdornerLayer)));
#elif SILVERLIGHT
            renderer.AddRenderer(new PathRenderer());
            renderer.AddRenderer(new FrameworkElementRenderer(
                typeof(ContentPresenter),
                typeof(Control),
                typeof(ItemsPresenter)));
#endif

        }
예제 #2
0
        private static void SetUp(PdfRenderer renderer)
        {
            renderer.AddRenderer(new PanelRenderer());
            renderer.AddRenderer(new TextBoxRenderer());
            renderer.AddRenderer(new TextBlockRenderer());
            renderer.AddRenderer(new BorderRenderer());
            renderer.AddRenderer(new RectangleRenderer());
            renderer.AddRenderer(new EllipseRenderer());
            renderer.AddRenderer(new LineRenderer());
            renderer.AddRenderer(new ImageRenderer());
#if WPF
            renderer.AddRenderer(new ShapeRenderer());
            renderer.AddRenderer(new FrameworkElementRenderer(
                                     typeof(ContentPresenter),
                                     typeof(Control),
                                     typeof(ItemsPresenter),
                                     typeof(System.Windows.Documents.AdornerLayer)));
#elif SILVERLIGHT
            renderer.AddRenderer(new PathRenderer());
            renderer.AddRenderer(new FrameworkElementRenderer(
                                     typeof(ContentPresenter),
                                     typeof(Control),
                                     typeof(ItemsPresenter)));
#endif
        }
예제 #3
0
 static ExportHelper()
 {
     pdfRenderer = new PdfRenderer();
     SetUp(pdfRenderer);
 }
예제 #4
0
 internal PdfRenderContext(FixedContentEditor drawingSurface, PdfRenderer facade)
 {
     this.drawingSurface = drawingSurface;
     this.facade = facade;
     this.opacity = 1;
 }
예제 #5
0
 static ExportHelper()
 {
     pdfRenderer = new PdfRenderer();
     SetUp(pdfRenderer);
 }
 internal PdfRenderContext(FixedContentEditor drawingSurface, PdfRenderer facade)
 {
     this.drawingSurface = drawingSurface;
     this.facade         = facade;
     this.opacity        = 1;
 }