Removed redundant/unused IWebBrowser from MainWindow.Xaml.cs

MainWindow.xaml uses the MainView View/ViewModel, which contains its own IWebBrowser. Removed redundant/unused IWebBrowser from MainWindow.xaml.cs.
This commit is contained in:
Evan Wondrasek 2014-06-23 14:38:24 -05:00
parent ab1129ee9b
commit 98d226f118

View File

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