I've created an MRU listView with buttons in WPF and I know how to determine which itme in the listview was clicked but I'm having trouble removing the item from the listview using remove at.
I want to replicate the listview used word 2010.
I'm writing key's to the registry to store Name "Item1" etc. with the Data "D:\\Somefile.txt"
I'll add "[true]" etc. as a pin state later.
I need to sync my registry with my List and I can read the list in fine and display the buttons.
I just need to be able to update the registry and list state when a new item is added.
Previously I removed the key if it existed using a string compare in c#, but now I'm using databinding and moving through the Observable Collection and don't understand how since I have two items in my collection, MRUFileName and MRUPath,
My collection is setup as so:
First I've declared my collection
ObservableCollection<MRUClass> _filename = new ObservableCollection<MRUClass>(); // MRU Collection
then I setup my Getter/Setters in my class: