Esempio n. 1
0
 public MainWindow()
 {
     InitializeComponent();
     feedViewModel = new FeedViewModel();
     WebBrowserHelper.SuppressCookiePersistence();
     DataContext = feedViewModel;
     ResultTextBlock.DataContext = this;
     feedViewModel.GetFeedAsync();
     FeedStyle                = WebBrowserHelper.LoadStyle(FeedStylePath);
     BrowserStyle             = WebBrowserHelper.LoadStyle(BrowserStylePath);
     FeedCombobox.ItemsSource = feedViewModel.FeedUrls;
     Application.Current.MainWindow.Closed += new EventHandler(MainWindow_Closed);
 }