Cefsharp 114 JavascriptObjectRepository.ResolveObject WPF property are not visible in JS #4554
Replies: 1 comment 1 reply
-
Not supported in You will need to stick with |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I have a solution in .Net 6 with cefsharp 114. I'm using JSObject to communicate between JS and WPF. I have an old solution with .Net Framework 4.5.2 and there works with an older Cef.
I tried to reproduce the issue in the MinimalExample and unfortunately same. Method works, property not. Tried with simple property and full property (get and set for both)
I tried with Register and ResolveObject event to.... Same behavior.
this.InitializeComponent();
this.Browser.JavascriptObjectRepository.Settings.LegacyBindingEnabled = true;
this.Browser.JavascriptObjectRepository.ResolveObject += (s, e) =>
{
e.ObjectRepository.Register("shellMeta", new ShellMetaClass() { FullProp = "2.0.0.0", SimpleProp = "2.3.1.0" });
};
I hope can be resolve.
Thank you
Beta Was this translation helpful? Give feedback.
All reactions