Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Value produced by BindingExpression is not valid for target

System.Windows.Data Error: 5 : 
  Value produced by BindingExpression is not valid for target property.; 
  Value='<null>' BindingExpression:Path=Attributes[AssetSL]; 
  DataItem='DataBinding' (HashCode=4074007); 
  target element is 'RegionSSIn' (Name='rssi'); 
  target property is 'AService' (type 'SLG')

What that exception means ?

like image 454
Erez Avatar asked Apr 28 '11 15:04

Erez


1 Answers

This just means what is said in your output: your binding produces a value not accepted by the control.

The property AService, in element RegionSSln is bound to a bad value. You might try using a converter to have an appropriate value.

As an example, the same problem would happen if you try for example to bind a Visibility to an Integer: it will produce the same error: the control is waiting for an object of type Visibility, and has something else instead

like image 194
Damascus Avatar answered Nov 03 '22 00:11

Damascus