WPF Data Binding to a string property
问题 I have a question about data binding which I am struggling with. I have the following property in my xaml.cs file: private string _stationIdInstruction; public event PropertyChangedEventHandler PropertyChanged; public string StationIdInstruction { get { return _stationIdInstruction; } set { _stationIdInstruction = value; OnPropertyChanged("StationIdInstruction"); } } protected void OnPropertyChanged(string name) { if (PropertyChanged != null) PropertyChanged(this, new PropertyChangedEventArgs