I would like to have an edit function in my program. I am creating a phone book wherein I use list in saving data (no database yet). I would like to have an edit function whenever i click an item in the list but I do not know how to do it.
This is my code for adding:
Person contact = new Person();
private ObservableCollection<Person> person = new ObservableCollection<Person>();
person.Add(new Person()
{
Name = contact.Name,
Contact = contact.Contact,
ImagePath = contact.ImagePath,
Gender = contact.Gender
});
I used selection changed when determining the selected item in the list. A help would be greatly appreciated. Thanks!