简体   繁体   English

System.Windows.Controls.WebBrowser(IFramed 窗口)如何在 xaml(WPF) 中与其父视图通信

[英]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.

相关问题 如何在WebBrowser实例中的WPF和JavaScript之间进行通信? - How to communicate between WPF and JavaScript in a WebBrowser instance? 如何让两个窗口(一个window被另一个打开)通信 - how can let two windows(a window is opened by another) communicate 子窗口如何在其父窗口上调用函数? - How can child window call a function on its parent window? 如何使用 window.postmessage 与父 window 通信 - How to use window.postmessage to communicate with parent window javascript-如何从子窗口启用父窗口的控件 - javascript-how enable controls of a parent window from child window 子级骨干视图如何在不将整个“ this”作为父类传递的情况下访问其父视图的特定属性 - How can a child backbone view get access to its parent view specific properties without passing whole 'this' as parent 如何使用父页css为iframed页面内容提供样式? - How to give style to iframed page content using parent pages css? 如何将事件从父窗口发送到其子窗口? - How can I send an event from parent window to its child window? 如何将子窗口中的事件发送到其父窗口 - How can I send an event from child window to its parent window 在弹出窗口和父窗口之间进行通信 - Communicate between pop up window and the parent window
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM