In my program I am trying to make a copy of a Data Model so that I can set it as the Data Model of another User Control.
So far I have tried setting the new Data Model to the Data Model that I want to copy, but all that did was aim both User Controls to the same Data Model.
An example of what I did:
newUserControl.NewDataModel = oldUserControl.OldDataModel;
How do I make a copy of a data model so that I can set it as the Data Model context of another User Control, without making the UCs aim at the same Data Model?