This is a migrated thread and some comments may be shown as answers.

Duplicate RadPane

1 Answer 65 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Development
Top achievements
Rank 1
Development asked on 22 Jan 2011, 12:05 PM
Is it possible to duplicate a selected RadPade (with it's content inside) programatically?

1 Answer, 1 is accepted

Sort by
0
Pana
Telerik team
answered on 27 Jan 2011, 08:19 AM
Hello Development,

No. You can not actually clone the ui elements.

However if you design your application well you can create a ViewModel and create different RadPanes that share the same ContentTemplate. This can be achieved easily with a RadPane Style or by creating the RadPane a custom control.

I am attaching a movie that shows how you can create the Panes like UserControls. You have to create the RadPane in your project the same way and when you want to create a new one just create a new instance of the same custom pane and add it into a RadPaneGroup in the RadDocking.

All the best,
Pana
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
Tags
Docking
Asked by
Development
Top achievements
Rank 1
Answers by
Pana
Telerik team
Share this question
or