Expression > Gallery > Behaviors > TextBox Enter Button Invoke
Express yourself! Share your work with other members of the Expression Community.

Each contribution is licensed to you under a License Agreement by its owner, not Microsoft. Microsoft does not guarantee the contribution or purport to grant rights to it.

TextBox Enter Button Invoke

Average Rating:  (7)
Description
Discussions (1)
  • Good job
    3 Posts | Last Post: September 25, 2009
    • I was about to make and publish this same behavior. Nice work. Since you already did it, I'll tell you some features that I had in mind and you could implement:

      1 - Put a property to make it possible to to disable the behavior.
      2 - Put a property to tell if the button should be triggered when the textbox is empty.
    • Hi,
      Thank you very much for great feedback!! but I believe that behaviors should be simple as they can be. :)

      Instead of giving property to disable behaviour, user can detach it.

      The same thing is with empty textbox issue. I've thought about what you wrote and I decided that this property should also be not added. Behavior just invoke button, so when user would like to validate when textbox is empty, he should only take care about what happen when button is clicked. My behavior don't call button's method, it only invoke the button :]

      PS. When you set IsEnable to false on the button, behavior won’t call button's method (there was a error in this situation but I fixed it).

      I hope you agree with me and thank you for your suggestions!
      Jacek Ciereszko
    • It makes sense. Once again, nice work.