Consider a listbox in WPF (MVVM) having a list of items(items are file names).If First item in listbox selected then the first file will be opened correctly. Suppose, if 'New' button(to open new file)is clicked and new file is opened. Now, if the first item(first file) is selected then fist file is not opening insetead new is only opened because list box selection is not changed. Instead if any other item is selected then it is working fine.How to make the first item to get selected again.
You can set your selectedItem to null then set it back to your value that you need.