public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { var cParam = parameter as DateConverterParameter; DateTime?dateTime = DateTimePickerHelper.ReadValueFromProperty(value, cParam); return(dateTime); }
public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { var cParam = parameter as DateConverterParameter; return(DateTimePickerHelper.ReadValueFromControl((DateTime?)value, cParam)); }