Can I embeded IE in my wpf application and interact with it firing events

前端 未结 1 648
小蘑菇
小蘑菇 2021-01-22 17:26

Can I embeded IE in my wpf application and interact with it firing events? e.g. can I fill a form and press submit button programmatically?

相关标签:
1条回答
  • 2021-01-22 18:13

    Below is the link to the web browser control for WPF, this control was not part of the initial release of WPF, and was added in 3.5 SP1. As long as you are targeting 3.5 SP1 you can use this control and interact with the content in it. I have a WPF application that does use this control and we do a lot of JavaScript interactivity with the content from the browser by drawing on a WPF canvas and sending that information to the content API of the web browser control.

    If you need an example I can look up some code samples from the application and send them your way.

    0 讨论(0)
提交回复
热议问题