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); }
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); }