WPF WebBrowser Mouse Events not working as expected

前端 未结 2 1091
無奈伤痛
無奈伤痛 2020-11-29 12:34

I have a WebBrowser object in a WPF Page and I\'m trying to do something whenever the user interacts with the page. I have intially tried to use the events associated with t

2条回答
  •  情深已故
    2020-11-29 13:08

    Mouse events are not supported by the WebBrowser control, according to the documentation. You need to hook up handlers to the DOM events provided by the document being displayed in the control, using the WebBrowser.Document property. This post has an example of how to do this.

提交回复
热议问题