[英]How does System.Windows.Controls.WebBrowser (IFramed window) can communicate to its parent view in xaml(WPF)
How to do similar thing as below in WPF, the WebBrowser used in the below link belongs to windows forms.如何在WPF中做类似的事情,下面链接中使用的WebBrowser属于windows窗体。 I have a requirement to communicate between parent(window opener) and child view's (window opened)我需要在父视图(开窗器)和子视图(开窗器)之间进行通信
https://docs.microsoft.com/en-us/dotnet/framework/winforms/controls/implement-two-way-com-between-dhtml-and-client https://docs.microsoft.com/en-us/dotnet/framework/winforms/controls/implement-two-way-com-between-dhtml-and-client
您可以使用 WindowsFormsHost 控件https://www.wpf-tutorial.com/misc-controls/the-windowsformshost-control/在 WPF 中使用 WebBrowser 及其属性和事件,并实现与链接中相同的内容
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.