-
We are new to CefSharp and are trying to decide whether to use it. A capability that we would like to have is this:
Is the preceding possible through CefSharp? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Yes that is possible, you can add an event listener to the button, then call a method in C#. |
Beta Was this translation helpful? Give feedback.
-
Two methods: One is to register your own object (class) and call a method in that, but simplest is:
Which is received in JavascriptMessageReceived. Here's a sample: https://github.com/cefsharp/CefSharp/wiki/Frequently-asked-questions |
Beta Was this translation helpful? Give feedback.
Two methods: One is to register your own object (class) and call a method in that, but simplest is:
CefSharp.PostMessage("Hello")
Which is received in JavascriptMessageReceived.
Here's a sample: https://github.com/cefsharp/CefSharp/wiki/Frequently-asked-questions