Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2090
XamDateTimeEditr with AutoFillDate=Year creates error
posted

Hello,

I am using XamDateTiemEditor with AutoFillDate=Year. When I enter now an incomplete date like "01.10." (for 1st october of the current year) I see following error in the output:

System.Windows.Data Error: 7 : ConvertBack cannot convert value '15.10.' (type 'String'). BindingExpression:Path=StartDatum; DataItem='vmArbeitseinteilung' (HashCode=27462382); target element is 'XamDateTimeEditor' (Name=''); target property is 'Text' (type 'String') FormatException:'System.FormatException: Die Zeichenfolge wurde nicht als gültiges DateTime erkannt.

Means = string is not recognized as correct datatime format

Interessting is that the value of the XamDateTimeEditor is already completed when the events EditModeEnding and EditModeEnded are firing. It is then a full DateTime with day, month and year.

Question: How do I get ride this error ?


Thanks

Niko