Hi,
I'm editing records in a datagrid, using a kind of popup control. On the control I have some XamEditors. Basically I reuse the form anytime I want to do something. I put my controls in IsAlwaysInEditMode.
When I change or add a record, and select another (bind the dataitem of the grid to my popup control) I get the funny behaviour that the value I entered previously is still stored as OriginalValue. This is ofcourse not the behaviour I would like. It would be nice if I could reset the XamTextEditor.. I could remove the control and instantiate it again but then what do I use XAML for? ;-)
Some input would be appreciated here, thanks:)
This seems like a bug. You should report this issue to the support group. Since the control is always in edit mode, its not updating the OriginalValue when the Value is set. This is correct when logical focus is within the editor but when it doesn't have logical focus then it should have updated the OriginalValue.
So you mean if the control is set to IsAlwaysInEditMode, it shouldn't keep a reference to the OriginalValue?
I noticed this when I pressed escape in the 'previously' used texteditor, and I assumed that pressing escape would set the value back to the original value. Is this a correct assumption?