using CefSharp.MinimalExample.Wpf.Mvvm; using CefSharp.Wpf; using System.ComponentModel; using System.Windows; namespace CefSharp.MinimalExample.Wpf { public partial class MainWindow : Window, INotifyPropertyChanged { private IWpfWebBrowser webBrowser; public IWpfWebBrowser WebBrowser { get { return webBrowser; } set { PropertyChanged.ChangeAndNotify(ref webBrowser, value, () => WebBrowser); } } public MainWindow() { InitializeComponent(); DataContext = this; } public event PropertyChangedEventHandler PropertyChanged; } }