WPF Binding qui ne se rafraichi pas sur propriété readonly

madflo Messages postés 47 Date d'inscription mercredi 28 juillet 2004 Statut Membre Dernière intervention 24 juin 2013 - 21 janv. 2010 à 10:24
madflo Messages postés 47 Date d'inscription mercredi 28 juillet 2004 Statut Membre Dernière intervention 24 juin 2013 - 21 janv. 2010 à 10:25
Bonjour,
je viens poster ici après plusieurs heures de recherche depuis hier, j'ai débuté WPF hier et je suis déjà complètement bloqué par un binding qui ne fonctionne pas correctement.

Voici mon textblock bindé sur une property readonly (MonEntity.EntityState As System.Data.Entity.EntityState)

<TextBox Margin="186,8,6,0" Name="txtLibelleInclu" Text="{Binding LibelleInclu}" Height="22" VerticalAlignment="Top" MaxLength="50" />

Il ne marche pas lors de la modification de l'objet qui doit modifier cette property.
Reste à "Unchanged".

1 réponse

madflo Messages postés 47 Date d'inscription mercredi 28 juillet 2004 Statut Membre Dernière intervention 24 juin 2013
21 janv. 2010 à 10:25
<TextBox Margin="186,8,6,0" Name="txtLibelleInclu" Text="{Binding EntityState}" Height="22" VerticalAlignment="Top" MaxLength="50" />

Pardon petite erreur c'est {Binding EntityState} et non {Binding LibelleInclu}
0
Rejoignez-nous