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
Post a Comment