Sweta Sinha

Sweta Sinha

  • NA
  • 51
  • 42.2k

How to use INotifyChanged

Jan 6 2015 7:42 AM
I have a listbox in my xaml.I am adding items to this listbox using List<Object> i.e,partList.
 
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?

Answers (2)