databinding + INotifyPropertyChanged

18/02/2009 - 21:58 von jochen | Report spam
Hi,

i have a class "user" that implements INotifyPropertyChanged.
with databinding i bind a objekt user1 to textboxes on a winform.

If i change the properties from user1, the textboxes will be updated.

Now i have a function that returns an objekt(user).
user1 = getuser(); -> no changes in the textbox.
with debugging i see, that the setter was not called.

How can i get this done ?
i want to see the returned data in my textboxes.

bye jo
 

Lesen sie die antworten

#1 Markus Springweiler
20/02/2009 - 10:14 | Warnen spam
jochen,

in deutschen Gruppen darfst du ruhig auch deutsch schreiben.

i have a class "user" that implements INotifyPropertyChanged.
with databinding i bind a objekt user1 to textboxes on a winform.
If i change the properties from user1, the textboxes will be updated.
Now i have a function that returns an objekt(user).
user1 = getuser(); -> no changes in the textbox.



Das Objekt bzw. die Klasse, welche user1 beherbergt, muss dann natürlich
auch INotifyPropertyChanged implementieren und die Änderung für die
Property "user1" mitteilen.

with debugging i see, that the setter was not called.



Welcher setter?

How can i get this done ?
i want to see the returned data in my textboxes.



s.o.

/\/\arkus.

Ähnliche fragen