public void render() { if (webView.IsDirty() && hasFocus) { RenderBuffer rBuffer = webView.Render(); rBuffer.CopyToBitmap(src); img.Source = src; } }