public BatchDownloadPage() { _jobRunner = new JobRunner(); InitializeComponent(); ViewData = new ObservableCollection<JobDownloadViewModel>(); dgvJobList.DataContext = this; DataContext = this; Application.Current.Exit += new ExitEventHandler(Current_Exit); }