Getting Error Invalid Binding Path in SIlverlight -


i have class class :

[datacontract] public class {     [datamember]     public string name{ get; set; } } 

i inheriting class in class b :

[datacontract] public class b : {     public b()     {         name = "me"     } } 

and in ui section bind object of class b control , set binding of control below :

//this code throws error :invalid error  binding = new binding{path = new propertypath(objectb.name),mode = bindingmode.twoway} 

edit : value of property guid . "-" in guid causing error ?

new propertypath(objectb.name) 

should be

new propertypath("name") 

and set

source = objectb 

so, should be:

binding = new binding           {                source = objectb,                path = new propertypath("name"),               mode = bindingmode.twoway           } 

Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -