Public Sub New DataContext = Me End Sub Private _text As String = "Test string" Public Property Text As String Get Return _text End Get Set(value As String) If Not _text = value Then _text = value OnPropertyChanged("Text") End If End Set End Property
<TextBox Text="{Binding Text,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged,ValidatesOnNotifyDataErrors=True}"/> <TextBox Text="{Binding Text,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged,ValidatesOnNotifyDataErrors=True}"/>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)