title: What do binding Error codes mean, and where can I find a list of them?
body: <p>When I get a binding error in WPF, there is an error code that goes with it. </p>
  
  <p>For example, </p>
  
  <blockquote>
    <p>System.Windows.Data <strong>Error: 40</strong> : BindingExpression path error:
    'Product' property not found on 'object' ''ProductModel'
    (HashCode=57788087)'. BindingExpression:Path=Product;
    DataItem='ProductModel' (HashCode=57788087); target element is
    'TextBox' (Name=''); target property is 'Text' (type 'String')</p>
  </blockquote>
  
  <p>or</p>
  
  <blockquote>
    <p>System.Windows.Data <strong>Error: 4</strong> : Cannot find source for binding with
    reference 'RelativeSource FindAncestor,
    AncestorType='System.Windows.Controls.ItemsControl',
    AncestorLevel='1''. BindingExpression:Path=HorizontalContentAlignment;
    DataItem=null; target element is 'MenuItem' (Name=''); target property
    is 'HorizontalContentAlignment' (type 'HorizontalAlignment')</p>
  </blockquote>
  
  <p>What do these error codes represent, and where can I find a list of them?</p>