title: binding a custom property class WPF
body: <p>I got a custom WPF property class named "RFPGegevens"</p>
  
  <pre><code>public class RFPGegevens
  {
      private string _klant;
      public String Klant
      {
          get { return _klant; }
          set { _klant = value; }
      }
   }
  </code></pre>
  
  <p>In my ViewModel I got a property RFPGegevens</p>
  
  <pre><code>    private RFPGegevens _rfpGegevens;
  
      public RFPGegevens RfpGegevens
      {
          get
          {
              if (_rfpGegevens == null)
                  _rfpGegevens = new RFPGegevens();
              return _rfpGegevens;
          }
          set
          {
              _rfpGegevens = value;
              base.RaisePropertyChangedEvent("RfpGegevens");
          }
      }
  </code></pre>
  
  <p>This property is filled correctly, if I debug this is the result:</p>
  
  <p><img src="https://i.stack.imgur.com/6lviX.png" alt="enter image description here"></p>
  
  <p>In my View I'm binding the property "RFPGegevens" to the datacontext of my Grid</p>
  
  <pre><code>&lt;Grid DataContext="{Binding RfpGegevens}"&gt;
  </code></pre>
  
  <p>and still if I debug the "Klant" property field is filled.</p>
  
  <p><img src="https://i.stack.imgur.com/RebZF.png" alt="enter image description here"></p>
  
  <p>But as I bind this property in the View my textbox is still empty.</p>
  
  <pre><code>&lt;TextBox Text="{Binding Klant, Mode=TwoWay}"/&gt;
  </code></pre>
  
  <p>I also tried this but nothings seems to work: </p>
  
  <pre><code>&lt;TextBox Text="{Binding RFPGegevens.Klant, Mode=TwoWay}"/&gt;
  </code></pre>
  
  <p>Don't know what I'm doing wrong. <br />
  Thanks in advance ;)</p>