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:
parent
ab1129ee9b
commit
98d226f118
@ -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;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user