Hi.
I think I've found a workaround. I made a new UserControl:
It is very important all initialization code should be in separate method called if condition evaluates. When "Project Code" is enabled in Designer, it runs all constructors ignoring any conditions it finds, except when condition can be evaluated at compile time. So when I tried to put "if (IsDesignMode) return;" in constructor - it didn't work, the rest of the constructor code was executed anyway.
When "Project Code" is enabled, the conditional code is ignored and the ChromiumWebBrowser is not initialized. Designer works as charm. Problem solved.
All it takes now is to incorporate my solution into CefSharp.Wpf.ChromiumWebBrowser constructor to make such hacks redundant in future.
Please let me know if my workaround is useful, and if so, should I make a pull request on GitHub with the fix.
Best regards,
Adam Łyskawa