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
990
xamEditors Controls and IsDefault property
posted

I have a form with some xamEditors controls and a button with isDefault property set to true. My problem is that when I hit Enter key on a control xamEditors the event of the button in my form is not raise. To raise the event I must hit Enter key for a second time.
What is wrong?

Thanks for reply

Parents
No Data
Reply
  • 69686
    posted

     Hi Matteo,

    When hit Enter for the first time (and you are in the XamEditors ) the event which is fired is EditModeEnded. The second time you press Enter is the event of the button. If you do not want EditModeEnded event to be fired and be able to handle the event of the button with only one pressing of the Enter key, while still in the XamEditor, you have to set the IsAlwaysInEditMode Property to "True".

    Hope this helps. 

Children