I'm trying to create a custom date range user control which contains two XamDateTimeEditor ('DateFrom' and 'DateTo'). Also it has 2 dependency properties named in the same way. XamDateTimeEditor controls' Value properties are binded to corresponding property. There is a small validation logic that doesn't allow DateTo to be less that DateFrom and DateFrom to be bigger that DateTo. This is done by using CoerceValueCallbacks defined for user control's properties. Validation works ok but XamDateTimeEditor still display value that is set by user, for example: DateFrom is set to 29/03/2010 and DateTo is set to 30/03/2010. Then I set DateTo editor value to 28/03/2010 - user control's property value is reseted to 29/03/2010 but XamDateTimeEditor control displays 28/03/2010. I assume that if it's binded to property it should be also reseted to 29/03/2010. Is it some kind of issue or I'm doing something wrong? I've attached sample project.
This appears to have been fixed in service release 2065 (thanks Infragistics).
Try download it and see if that helps.
this still seems to be an issue, has it been addressed anyone?
Hi,
Has this been fixed yet?
Because if I set the value of the date property of the viewmodel (bound to xamDateTimeEditor Value) , the xamDateTimeEditor does not refresh in the UI.
We have been looking and investigating the described behavior and we found that the difference in the behavior between the TextBox and XamNumericEditor can be attributed to the fact that the binding to the Value property of the XamNumericEditor by default uses UpdateSourceTrigger of PropertyChanged where as the binding to the Text property of TextBox by default uses UpdateSourceTrigger of LostFocus.
If you set the UpdateSourceTrigger to LostFocus on the binding to the XamNumericEditor.Value property, you will get the same behavior as the TextBox. Likewise if you set the UpdateSourceTrigger to PropertyChanged on the TextBox.Text binding, you'll get the same behavior the XamNumericEditor gives you by default.
Let me know if you have any further questions.Sincerely,DimiDeveloper Support EngineerInfragistics, Inc.
hi, Alex
I want to know this issue. where is the support case? I can't find that.
thanks alex in advance