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
1540
OriginalValue being updated when lost focus even when IsAlwaysInEditMode = true
posted

As the subject title says...

I have a XamTextEditor control on my XBAP GUI, and I set its IsAlwaysInEditMode property to true.  However, when I click in the box, change the value (thus updating Text and Value properties) and then click away (so that it loses focus), the OriginalValue property updates to be the same as the Text and Value properties.

I thought that if IsAlwaysInEditMode is set to true, OriginalValue doesn't get updated until EndEditMode() is called.

If I am wrong, how can I get this behaviour, so that I can keep track of the original value until such time that the newly-entered value is accepted (by way of another button on the form being pressed)?

 

Parents
  • 69686
    posted

     Hello,

    The original value of the XamTextEditor is always null if you have not entered text initially. If you have some text as content, then the original value will be this text. I have created a simple application and handled the LostFocus event and examine the OriginalValue property and it is not changed.

    Am I missing something? If that, paste me some source code to take a quick look. 

Reply Children