using System.ComponentModel; public class BarcodeData : INotifyPropertyChanged { public BarcodeData() { Data = string.Empty; } private string barcodeData; public string Data { get { return barcodeData; } set { barcodeData = value; RaisePropertyChanged(); } } public event PropertyChangedEventHandler PropertyChanged; private void RaisePropertyChanged() { if (PropertyChanged != null) { PropertyChanged(this, new PropertyChangedEventArgs("Data")); } } }