Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>WPF binding errors aren't always the easiest thing to read, but break it up by the colons/semi-colons/periods, and read it backwards:</p> <ul> <li>target property is 'NoTarget' (type 'Object')</li> <li>target element is 'ContentControl' (Name='HeaderBorder');</li> <li>DataItem='FrameViewModel' (HashCode=55649279); </li> <li>BindingExpression:Path=Active; </li> <li>'Active' property not found on 'object' ''FrameViewModel' (HashCode=55649279)'. </li> <li>BindingExpression path error: </li> <li>System.Windows.Data Error: 40 : </li> </ul> <p>This can be read as:</p> <ul> <li>Somewhere you are trying to bind a property called <code>NoTarget</code></li> <li>This property is located on a <code>&lt;ContentControl&gt;</code> with <code>Name="HeaderBorder"</code></li> <li>The DataItem (<code>DataContext</code>) behind that UI object is of type <code>FrameViewModel</code></li> <li>The property you are trying to bind is called <code>"Active"</code></li> <li>The <code>Active</code> property is not found on <code>FrameViewModel</code></li> <li>The rest of the stuff is usually ignorable</li> </ul> <p>Normally I'd suggest you look in your code for something that looks a bit like this:</p> <pre><code>&lt;ContentControl Name="HeaderBorder" NoTarget="{Binding Active}" /&gt; </code></pre> <p>and that will be where your problem is for this error message</p> <p>But, in your case the problem property is <code>NoTarget</code>, which is apparently something special to WPF (I learn something new all the time!) related to the triggers. </p> <p>A Google quick search returns <a href="https://stackoverflow.com/q/53301/302677">this post</a>, which suggests the problem is caused by not using the correct syntax for binding to an attached property. </p> <p>Try writing the binding for your attached property with parenthesis, like this</p> <pre><code>&lt;DataTrigger Binding="{Binding Path=(local:Card.Active),... </code></pre> <p>(I'm not entirely sure if this will work because I thought attached dependency properties had to be attached to UI objects, and you have yours attached to a <code>Card</code> object which sounds like a data object. But I could be wrong, or have misunderstood your code :))</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

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