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

Unable to find element using FindName when in RadPane

1 Answer 49 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Clinton
Top achievements
Rank 1
Clinton asked on 23 May 2011, 03:16 AM
Hi there,

I have objects inside a RadPane.  If the Group is unPinned to the side of the screen as a tab, I can no longer reference my objects using FindName.

Instead it returns a NULL result for my object.

PanelDesignerButtons

 

 

myPane = LayoutRoot.FindName("DesignerPanelButtons") as PanelDesignerButtons;

 

 

Any help is appreciated.

Thank you

Clinton

1 Answer, 1 is accepted

Sort by
0
Konstantina
Telerik team
answered on 25 May 2011, 11:43 AM
Hi Clinton,

This is because the content of the pane that is not currently selected or is in the auto hide area is not part of the visual tree. What I would suggest you is not to put names to the user controls but to the panes to find their contents.

Hope this information helps.

Regards,
Konstantina
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Docking
Asked by
Clinton
Top achievements
Rank 1
Answers by
Konstantina
Telerik team
Share this question
or