CSLA/Silverlight Binding not responding to keypress.

CSLA/Silverlight Binding not responding to keypress.

Old forum URL: forums.lhotka.net/forums/t/5875.aspx


dts posted on Tuesday, November 25, 2008

Hi

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?

Regards
DTS

sergeyb replied on Tuesday, November 25, 2008

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.

 

Sergey Barskiy

Principal Consultant

office: 678.405.0687 | mobile: 404.388.1899

cid:_2_0648EA840648E85C001BBCB886257279
Microsoft Worldwide Partner of the Year | Custom Development Solutions, Technical Innovation

 

From: dts [mailto:cslanet@lhotka.net]
Sent: Tuesday, November 25, 2008 9:52 AM
To: Sergey Barskiy
Subject: [CSLA .NET] CSLA/Silverlight Binding not responding to keypress.

 

Hi

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?

Regards
DTS



dts replied on Tuesday, November 25, 2008

Thanks for the reply  Sergey

Just did a google and there are several sites commenting on it

http://karlshifflett.wordpress.com/2008/04/12/silverlight-2-lostfocus-and-data-binding-bugs/

Cheers
DTS


Copyright (c) Marimer LLC