SHARE
TWEET

TruckViewModel

thommy1972de2 May 28th, 2020 1,003 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System.ComponentModel;
  2. using System.Runtime.CompilerServices;
  3.  
  4. namespace WPF_TESTAPP.ViewModel
  5. {
  6.     public class TruckViewModel : INotifyPropertyChanged
  7.     {
  8.         private string _hersteller;
  9.  
  10.         public string Hersteller
  11.         {
  12.             get { return _hersteller; }
  13.             set
  14.             {
  15.                 _hersteller = value;
  16.                 OnPropertyChanged();
  17.             }
  18.         }
  19.  
  20.         public event PropertyChangedEventHandler PropertyChanged;
  21.  
  22.         protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null)
  23.         {
  24.             PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
  25.         }
  26.  
  27.     }
  28. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top