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
485
resetting the XamTextEditor?
posted

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:)

Parents
No Data
Reply
  • 54937
    Offline posted

    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.

Children