English 中文(简体)
同步 Web 浏览器到字符串导航
原标题:Synchronous Web Browser to String Navigation

与 WPF 网络浏览器控制同步导航到字符串的最佳方法是什么?

我知道 Web Browser. NavigateToString( string) 确实显示字符串, 但它没有同步, 没有同步。 除此之外, Web Browser. NavigateToString 总是返回 Web Browser. Document 区域中的空体。 而 Web Browser. Navigate 实际上返回文档中的一具尸体 。

在 WinForms 中,我可以做: WebBrowser.Document.Write(html); 但是在 WPF 中,我无法找到这样做的好办法。 我有一个函数可以导航到字符串并返回一个值, 所以我不想使用 WebBrowser. Naviged event...

问题回答

您需要先使用 HttpWeb request 获取正文, 然后按照您想要的处理, 然后在 Web 浏览器中显示它





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

NSArray s, Primitive types and Boxing Oh My!

I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...

热门标签