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

dynamically add DockingPanesFactory

2 Answers 140 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
hokushin
Top achievements
Rank 1
hokushin asked on 04 Dec 2016, 08:27 AM
Hello folks!


How can I add DockingPanesFactory to the RadDocking dynamically?

 <telerik:RadDocking 
                            x:Name="Docking"
                            >
            <telerik:RadDocking.DockingPanesFactory>
                <local:CustomDockingPanesFactory />
            </telerik:RadDocking.DockingPanesFactory>
   </telerik:RadDocking>

 var Dock = new Telerik.Windows.Controls.RadDocking();
.....
Any advise or suggestion will be greatly appreciated.

2 Answers, 1 is accepted

Sort by
0
Accepted
Nasko
Telerik team
answered on 06 Dec 2016, 09:44 AM
Hi,

We are not exactly sure that we completely understand your question. If you try to set the DockingPanesfactory in code - behind you could do it as shown below:
var Dock = new Telerik.Windows.Controls.RadDocking();
Dock.DockingPanesFactory = new CustomDockingPanesFactory();

We suggest you to check also the following article from our help documentation that provides detailed information how to bind a collection of Panes to RadDocking:
http://docs.telerik.com/devtools/wpf/controls/raddocking/features/panes/panesource

Hope this helps.

Regards,
Nasko
Telerik by Progress
Telerik UI for WPF is ready for Visual Studio 2017 RC! Learn more.
0
hokushin
Top achievements
Rank 1
answered on 06 Dec 2016, 09:50 AM
Thanks a lot for prompt reply, this is exactly what I was looking for. Appreciate it.
Tags
General Discussions
Asked by
hokushin
Top achievements
Rank 1
Answers by
Nasko
Telerik team
hokushin
Top achievements
Rank 1
Share this question
or