I have a listbox in my xaml.I am adding items to this listbox using List
public void setList()
{
for (int i = 0; i < partList.Count; i++)
{
var partListItem = partList[i].getLine().getItem();
PartListPhoneControl userPhoneControl= new PartListPhoneControl();
if (partListItem.getDescription() != null)
userPhoneControl.partDescription.Text = partListItem.getDescription();
}
}
Now if I am doing any changes in this list I want it to refresh the list box.How can I use INotifyChanged in this case?
Sweta SinhaPosted Jan 6, 2015, 11:58 PM
Paras KharbandaPosted Jan 6, 2015, 9:01 AM
Instead of using list i'll prefer to use observable collection in we can easily use inotifyproperty
because it is dynamic where as list is static.