Tarks
Tarks

Reputation: 4247

Clone a control in silverlight

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

UPDATE

Is there a better way in Silverlight 2?

Upvotes: 1

Views: 2585

Answers (1)

user1228
user1228

Reputation:

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.

Upvotes: 1

Related Questions