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

Control Naming when using RadDocking

1 Answer 145 Views
Docking
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
David
Top achievements
Rank 1
David asked on 29 Mar 2012, 06:36 PM
I have this issue when using the docking control that I must ensure that RadPanes do not contain controls with the same name otherwise I get an error saying that it already exists in the visual tree. Is this behaviour correct or am I doing something fundamentally wrong?

I thought it would be fine to have 2 controls with the same name aslong as they are hosted in 2 differently named radPanes??

Help on this would be greatly appreciated.

I should add that I'm using PRISM with this project.

1 Answer, 1 is accepted

Sort by
0
Miroslav Nedyalkov
Telerik team
answered on 04 Apr 2012, 08:41 AM
Hi David,

You cannot have two controls with the same names in the Docking control - this is because the panes doesn't create a new name scope and the framework doesn't allow existence of two elements with the same name in the same name scope.
Using the same  name scope for the content of all the panes is needed as when defining the panes in the same XAML file and placing names to their children, the framework generates fields for them and we want to keep these fields working correctly.

Hope this information is helpful.

Greetings,
Miroslav Nedyalkov
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
Docking
Asked by
David
Top achievements
Rank 1
Answers by
Miroslav Nedyalkov
Telerik team
Share this question
or