I recently took the MVVM project, started by someone who left the company; This is my first time using WPF, but in appearance it first used WPF and OOP ...
Anyway, I have a ListView in XAML and I have a collection class that currently does not contain the SelectedItem property.
Can someone tell me what code I need to link to associate the SelectedItem ListView with the still unwritten property of the SelectedItem of my collection, and then what code do I need to add the SelectedItem of the collection to the ListView?
Apologies for the question at the homework level, but the code I'm working with is such a nightmare that I still can’t wrap my head around “how to write WPF”? at the same time, like "how do I rewrite this horror of coding as OOP?" so if someone can provide me with sample code, I can work on pasting it into a nightmare ...
source
share