Therefore I bind Content property of lbl Selected Item to a property of View Model variable 8. What I should do at last, is to add command for handling the event when user clicks on item in List View. This approach also coincides with how Windows UI operate, where you specify the region that needs to be redrawn and then you send a message to the message pump for that control to paint itself.So, I expected something similar (if not exactly the same) to also be present in WPF; much to my surprise, there is no equivalent.So, I've decided to add a helper method to refresh a WPF control.
After searching on Internet I saw that man can use Prism extensions framework WPF to add custom command to our List View control. The code first moves the currently selected item in the List Box to the top of the list.The code then removes all items before the currently selected item and clears all selections in the List Box.This post will go through the differences, and how they are used, and also do a little review on databinding in WPF.To set this up, let's define Category objects and Product objects like this: Category--ID--Category Name--Products (An IList)Product--ID--Product Name--Category Parent (A Category Object)In the detail form for the Product, you want to have a Combo Box that has as its Items Source the list of Categories.Add method - overriding to String() seems to be the only way. Display = "New Display Value" The underlying object updates properly.