I've been using these samples perfectly with SilverLight, but when I try to use the DataStateBehavior in WPF with a model assigned to the DataSource I get the following error:
System.Windows.Data Error: 1 : Cannot create default converter to perform 'one-way' conversions between types 'System.Boolean' and 'System.Windows.Data.Binding'. Consider using Converter property of Binding. BindingExpression:Path=HasTarget; DataItem='NodeWrapper'
(HashCode=22933695); target element is 'DataStateBehavior' (HashCode=19947763); target property is 'Binding' (type 'Binding')
System.Windows.Data Error: 5 : Value produced by BindingExpression is not valid for target property.; Value='True' BindingExpression:Path=HasTarget; DataItem='NodeWrapper' (HashCode=22933695); target element is 'DataStateBehavior' (HashCode=19947763); target
property is 'Binding' (type 'Binding')
The underlying property 'HasTarget' is of type bool (although I tried it as a string too), and binding this property to a TextBlock shows it correctly returns true/false.
The error seems to suggest it want to bind to a Binding property? Has anyone come across this before?