private string _abc; public string abc { get { return _abc; } set { _abc= value; base.OnPropertyChanged("abc"); } }
<TextBlock Text="{Binding abc, UpdateSourceTrigger=PropertyChanged}" />
abc= nrRowsImported.ToString(); MessageBox.Show(abc);
abc= nrRowsImported.ToString();
Quote:To support OneWay or TwoWay binding to enable your binding target properties to automatically reflect the dynamic changes of the binding source (for example, to have the preview pane updated automatically when the user edits a form), your class needs to provide the proper property changed notifications. This example shows how to create a class that implements INotifyPropertyChanged.
INotifyPropertyChanged
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)