Question

What's the best way to clone a control in Silverlight (including it's children)?

UPDATE

Is there a better way in Silverlight 2?

Was it helpful?

Solution

Here's a great thread about serializing and deserializing objects in Silverlight 1.1.

As for a "best way," I'd say it would definitely be caching the xaml for the control and calling createFromXaml on it.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top