I have a Grid containing several controls, the most important being three image controls. I need to make a duplicate of this Grid. Serializing by saving the XAML in a MemoryStream doesnt seem to help because, obviously, when I set the source of the Image Control in the code behind at runtime, this change is not reflected in the XAML designer code. [Technically it is, but as
<Image.Source> System.Windows.Interop.InteropBitmap</Image.Source>
and I get some wierd exception] So, how can I serialize my Image control? More generally, how can I Clone my Grid control to reflect any changes to the UI that happened after the window loaded?