-
Hi there. I have an issue. I'm creating cefbrowser in my wpf application using MVVM line this: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
You can use a custom tabcontrol see https://github.com/cefsharp/CefSharp/blob/master/CefSharp.Wpf.Example/Controls/NonReloadingTabControl.cs#L21 for the basic implementation used by the WPF example. There are plenty of articles that cover the topic. |
Beta Was this translation helpful? Give feedback.
-
I found out that if I use ContentControl with Content binding to my WebBrowser - everything works as expected. The problem with custom tab control is - I'm using AvalonDock so there is I think no way I can change source code. Also I'm using Frame which is changin Pages inside application which is Also calls unloaded for whole page. I thought there is a property or something else than can help me. Any way thanks for mension of custom control maybe I'll find something usefull from that idea. |
Beta Was this translation helpful? Give feedback.
You can use a custom tabcontrol see https://github.com/cefsharp/CefSharp/blob/master/CefSharp.Wpf.Example/Controls/NonReloadingTabControl.cs#L21 for the basic implementation used by the WPF example.
There are plenty of articles that cover the topic.