title: Using base View Model Class with GalaSoft MVVM Light
body: <p>I am creating a project using WPF and MVVM-Light library from GalaSoft. I will have a base abstract View Model class, which will be used by all other View Model classes implemented. There I will have MVVM-Light base class as my base class. However, inside this base class, when I try to use RaisePropertyChanged function I get the following error:</p>
  
  <p>An object reference is required for the non-static field, method, or property 'GalaSoft.MvvmLight.ViewModelBase.RaisePropertyChanged(string)'</p>
  
  <p>The code will look like this:</p>
  
  <pre><code>AnalysisViewModelBase : ViewModelBase
  {
      public const string TagDescriptionStringListPropertyName = "TagDescriptionStringList";
  
      protected static List&lt;string&gt; m_tagDescriptionStringList;
  
      public static List&lt;string&gt; TagDescriptionStringList 
      { 
          get 
          { return m_tagDescriptionStringList; }
          set
          {
              if (m_tagDescriptionStringList == value)
                  return;
  
              m_tagDescriptionStringList = value;
  
              RaisePropertyChanged(TagDescriptionStringListPropertyName);
          }
  
      }
      protected AnalysisViewModelBase()
      {
          m_tagDescriptionStringList = new List&lt;string&gt;();
  
          m_tagDescriptionStringList.AddRange(new string[] { "North Position", "East Position", "Depth" });
      }
  }
  
  AnotherViewModel : AnalysisViewModelBase
  { ... }
  </code></pre>
  
  <p>Could anyone please help me understand what is wrong with my RaiseProperyChanged function?</p>