예제 #1
0
        protected override void OnHandleCreated(EventArgs e)
        {
            base.OnHandleCreated(e);

            _savedSize = this.Size;

            _svgRenderer          = new GdiGraphicsRenderer();
            _svgRenderer.OnRender = new RenderEvent(this.OnRender);
            _svgWindow            = new SvgPictureBoxWindow(this, _svgRenderer);
        }
예제 #2
0
        public SvgPictureBox()
        {
            InitializeComponent();

            SetStyle(ControlStyles.UserPaint, true);
            SetStyle(ControlStyles.AllPaintingInWmPaint, true);
            SetStyle(ControlStyles.OptimizedDoubleBuffer, true);

            //scriptEngineByMimeType = new TypeDictionary();
            //SetMimeTypeEngineType("application/ecmascript", typeof(JScriptEngine));

            renderer          = new GdiGraphicsRenderer();
            renderer.OnRender = new RenderEvent(this.OnRender);
            window            = new SvgPictureBoxWindow(this, renderer);
        }
예제 #3
0
        public SvgPictureBox()
        {
            InitializeComponent();

            SetStyle(ControlStyles.UserPaint, true);
            SetStyle(ControlStyles.AllPaintingInWmPaint, true);
            SetStyle(ControlStyles.OptimizedDoubleBuffer, true);

            //scriptEngineByMimeType = new TypeDictionary();
            //SetMimeTypeEngineType("application/ecmascript", typeof(JScriptEngine));

            renderer = new GdiGraphicsRenderer();
            renderer.OnRender = new RenderEvent(this.OnRender);
            window = new SvgPictureBoxWindow(this, renderer);
        }