i have use following code snippet in our working scenorio
list<data> list =new list<data>(); list.add(new data(){no = 1,name = "raja"}); list.add(new data() { no = 2, name = "rajesh" }); var data = list[0]; notifycollectionchangedeventargs args =new notifycollectionchangedeventargs(notifycollectionchangedaction.remove,list,1); var temp = args.olditems[0];
i cannot list[0] args , working fine in wpf . can please , please provide guidance achieve requirement. in advance
you need use notifycollectionchangedeventargs
constructor populates olditems
field. using notifycollectionchangedeventargs
constructor populates changed item , index, corresponds newitems
property
edit: noticed tagged silverlight. not appear have constructor, create yourself, otherwise i'm not sure how around since pass object (your code have this: var temp = ((ilist)args.olditems[0])[0];
same result wpf version).
Comments
Post a Comment