How to pass message from WPF to web #4435
Replies: 1 comment 1 reply
-
What is the problem with executing javascript exactly?
You can use a
How is this any different to calling a function directly? Event handlers are really just functions themselves.
You could easily implement this in your own app. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
My WPF are loading a website by using Cefsharp and what I want is passing message from WPF to web and web is able to receive it immediately. After receiving message, website will clear localStorage. Currently, I know that using function ExecuteScriptAsync can do it but I don' t want do that.
ExecuteScriptAsync("window.localStorage.clear();");
So is there other ways to pass message to web? I want web always listen WPF and can receive message immediately after WPF sending. Something works in JS side same as JavascriptMessageReceived event in C# side
Beta Was this translation helpful? Give feedback.
All reactions