private void CropCycleSelected(object sender, SelectionChangedEventArgs e) { ChartView.SuspendSeriesNotification(); // TODO: Kill this and move to Viewmodel. // THis is broken // You should two way bind box.selecteditem to ViewModel.SelectedCropCycle. var box = (ComboBox)sender; var selection = (KeyValuePair <CropCycle, string>)box.SelectedItem; ViewModel.SelectedCropCycle = selection.Key; StartDatePicker.Date = ViewModel.CycleStartTime; EndDatePicker.Date = ViewModel.CycleEndTime; ChartView.ResumeSeriesNotification(); }