tags:

views:

15

answers:

1

HI: How can I accept the last field entered when the window closes? could be a chkbox or textbox or ... Thanks

+1  A: 

In normal binding data will be updated (by default) in lostfucus event.If you want to update the data when you type in the control use UpdateSourceTrigger=property. Iam not sure is that your requirement.

eg. Binding="{Binding Path = Privilege, UpdateSourceTrigger=PropertyChanged}"

Kishore Kumar
As long you use that attribute will work.first: I beleive that will work with one condition ,what if UpdateSourceTrigger= PropertyLostFocus?2nd:at the click of any button do you loose focus if you are in a text field ?
ramnz