private static void SelectedDate_OnChange(DependencyObject d, DependencyPropertyChangedEventArgs e) { CRMTumblerPicker sender = d as CRMTumblerPicker; if (sender._selectedDate == (DateTime)e.NewValue) { return; } sender._selectedDate = (DateTime)e.NewValue; // Si el cambio de fecha viene desde los tumblers no hace falta que los actualice if (!sender._TumblersValues_PropertyChanging) { sender.setTumblersSelectionFromDate(sender._selectedDate); } }
private static void OnTumblersPropertyChanged(DependencyObject source, DependencyPropertyChangedEventArgs e) { CRMTumblerPicker thisCtrl = source as CRMTumblerPicker; // TODO: Configurar la vista cuando cambian todos los tumblers }