I want to create a reusable custom WPF control that will do the following:
I want it to expose Property of MasterContent and property of ExpandedDetails. When I run the application I want it to display the deatails of only The MasterControl the same as data grid does. When I click on an item, I want it to expand and show the details of ExpandedDetails.
I will give an example: Suppose I have a customer class and it has Orders Property.
When the Control is shown, it will display:
(Ok, I still can't post images, but I think it is clear from the explanation)
Now, suppose each row can be selected. If I select Row number 2, row 2 will exapnd and show the orders of Person describes in that row. The expanding part will be shown between rows 2 and 3. When I click on it again, the order detais will disapear so there is no gap between row 2 and 3.
In my case, Master Content Property will be the persons details without the orders, and the ExpandedDetails will be the Orders by themselves.
Can you please direct me to how to start implementing this or give me some good reading material. I'm familiar with The master Details Pattern: I know how select Person and then show his orders in some seperated DataGrid, but how do I implement this as a reusable control, especailly the expanding part. Thanks!