Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I wrote some other SO <a href="https://stackoverflow.com/a/14523290/302677">answer</a> recently about how to read the binding errors so they make more sense. To summarize, add line breaks to your error message on the colons and semi-colons, and read it from the bottom up.</p> <p>Your error message is:</p> <ul> <li>System.Windows.Data Error: 40 : <ul> <li>BindingExpression path error: 'ConfigurationModel' property not found on 'object' ''IncrementingTextBox' (Name='video_length_textbox')'. </li> <li>BindingExpression:Path=ConfigurationModel.DontUseSensorLength; </li> </ul></li> <li>DataItem='IncrementingTextBox' (Name='video_length_textbox'); </li> <li>target element is 'IncrementingTextBox' (Name='video_length_textbox'); </li> <li>target property is 'IsEnabled' (type 'Boolean')</li> </ul> <p>This can be read from the bottom up as:</p> <ul> <li><p>The binding failing is the <code>IsEnabled</code> property of an element of type <code>IncrementingTextBox</code> (named video_length_textbox).</p></li> <li><p>The <code>DataItem</code> (<code>DataContext</code>) of the element is an object of type <code>IncrementingTextBox</code> named video_length_textbox</p></li> <li><p>The binding expression it is trying to find is <code>ConfigurationModel.DontUseSensorLength</code></p></li> <li><p>And the problem the binding is having is that the <code>ConfigurationModel</code> property is not found on the data context object <code>IncrementingTextBox</code></p></li> </ul> <p>So your <code>DataContext</code> for "video_length_textbox" is set to itself, and your <code>IncrementingTextBox</code> class does not have a public property called <code>ConfigurationModel</code></p> <p>Since I don't see you setting the <code>DataContext</code> for your <code>IncrementingTextBox</code> anywhere in your XAML, check out the code for your <code>IncrementingTextBox</code> class. The most likely case is you are setting the DataContext to itself in either the Constructor</p> <pre><code>this.DataContext = this; </code></pre> <p>or the XAML</p> <pre><code>DataContext="{Binding RelativeSource={RelativeSource Self}}" </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload