1
Eh bien j'ai ce code dans mon code derrièreSilverlight databinding
Public Shared ReadOnly UsernameProperty As DependencyProperty = DependencyProperty.Register("Username", GetType(String), GetType(LoginControl), Nothing)
Public Property Username() As String
Get
Return CStr(MyBase.GetValue(UsernameProperty))
End Get
Set(ByVal value As String)
MyBase.SetValue(UsernameProperty, value)
End Set
End Property
puis-je avoir ce en XAML sur la même page
<TextBlock Text="{Binding Path=Username}" Style="{StaticResource WelcomeTextStyle}"/>
mais le textblock ne semble pas mettre à jour sa valeur.