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

How to get a reference to new PaneGroup

1 Answer 66 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Frank Wanicka
Top achievements
Rank 1
Frank Wanicka asked on 28 Sep 2010, 09:33 PM
When you have a DocumentHost and you drag one of the documents to create a new PaneGroup (using the compass), RadDocking dynamically creates a new PaneGroup. What is the recommended way to get a reference to it when it is created? I would like to add an event handler and set some other properties. I'm not seeing an obvious way of doing this.

Also, then you have multiple PaneGroups, each has a SelectedPane property. Is there any way to determine which RadPane is actually the one that is currently selected/has the focus?

1 Answer, 1 is accepted

Sort by
0
Miroslav Nedyalkov
Telerik team
answered on 30 Sep 2010, 03:07 PM
Hello Frank,

 The recommended way to set additional properties to the PaneGroups is to use implicit styles and set the properties in the Style setters. If you need to attach event handlers you could use the attached behavior approach - an attached property that adds behavior to the element it is attached to.

Another approach to accomplish this task is to implement your own IGeneratedItemsFactory and to set it to the GeneratedItemsFactory property of the Docking control. This interface has methods for creating ToolWindows, PaneGroups and SplitContainers and you can set additional properties or hook-up to events just before returning them.

About your second request - I guess you want to implement ActivePane feature. This is currently not supported by the Docking control, but it is in our TODO list.

Hope this information is helpful!

Best wishes,
Miroslav Nedyalkov
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
Frank Wanicka
Top achievements
Rank 1
Answers by
Miroslav Nedyalkov
Telerik team
Share this question
or