how to update a static list contents on GUI ?

how to update a static list contents on GUI as InotifyPropertyChanged works only for object of a class. I have done the data binding properly but yet if i add any extra element to list, The list view is not updated.

Answers

  • adamkempadamkemp USInsider, Developer Group Leader mod

    You need to use an ObservableCollection<T> instead of a List<T> or array.

  • rajatthakurrajatthakur USMember

    I got it, its done by CollectionChanged event handler.

  • rajatthakurrajatthakur USMember

    i got a different issue now,
    On choosing an image from gallery , i got the "ImageUri" (in android) of image something like "content://media/external/images/media/80" , and to display this image in listview in portable code, for image element i have set the "Source" property to the above mentioned "ImageUri", But it is unable to render the image, perhaps because its not getting the right path.

    Please help to resolve this issue. i will be thankfull for yuor support.

  • adamkempadamkemp USInsider, Developer Group Leader mod

    This is an entirely unrelated issue. Please make a new thread for it.

Sign In or Register to comment.