Indeed, you discovered an SL bug. One character change is not pushed by binding infrastructure to underlying object. At least two character change is required. I think this has been logged in Silverlight.net, but I am not 100% positive.
office: 678.405.0687 | mobile: 404.388.1899
Microsoft Worldwide Partner of the Year | Custom Development Solutions, Technical Innovation
Sent: Tuesday, November 25, 2008 9:52 AM
To: Sergey Barskiy
Subject: [CSLA .NET] CSLA/Silverlight Binding not responding to keypress.
I first noticed this in a CSLA Silverlight app I have been experimenting with and have just downloaded the lastest Rolodex sample and get the same behaviour.
If for instance I edit the AT&T company record by adding an extra character at the end of the company name textbox I sometimes find that the save button is not enabled when I tab off the textbox control. Even if I shift tab back or change the focused control using the mouse nothing happens until I enter another character.
On a CSLA Silverlight app that I have been experimenting with I can enter a single character into a sequence of textboxes after tabbing between each of them and get the same behaviour. I added some code and discovered that the text changed event is being invoked but none of the csla silverlight code is run.
Also if I do enter more than one character into a textbox and then click save the previous textboxes which did not cause a change in the save button lose their change.
Is this possibly a silverlight bug?
Copyright (c) Marimer LLC