I have an ObservableCollection of File as
ObservableCollection>FileList> Filelist;
The FileList entity class have two properties FileName and FilePath.I want to bind the filenames into a listbox and While selecting an item(Filename) in the list box need to display the content of the file into a textblock.
I am Following MVVM Pattern.
How can i implement this..?
Thanks in Advance..
I have crated a sample with MVVM..
Xaml Code:
Xaml Code Behind:
here are your view models