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

Are there any good c# examples on how to dynamically create docking elements?

1 Answer 112 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Rod Yager
Top achievements
Rank 1
Rod Yager asked on 31 May 2011, 02:27 PM
I would like to completely create my docking control and the panes inside dynamically at runtime. For some reason I am having a difficult time understanding the parent/child relationship of some of these controls. What I am looking to do is to create a docking control with evenly sized panes that can be used in a dashboard type screen. Meaning it would layout more like a grid. However, the client could re-arrange and save the layout however he/she desired. Are there any c# examples that I could draw from?

As an example this code throws an error. The only thing that is static xaml is the HomPageDocking control.

RadSplitContainer splitContainer = new RadSplitContainer();
WebBrowser browser = new WebBrowser();
browser.Navigate("http://www.facebook.com");
RadPane browserPane = new RadPane();
browserPane.Header = "Facebook Widget";
browserPane.Content = browser;
splitContainer.Items.Add(browserPane);
this.HomePageDocking.Items.Add(splitContainer);


 

Rod

1 Answer, 1 is accepted

Sort by
0
Konstantina
Telerik team
answered on 01 Jun 2011, 01:30 PM
Hello Rod,

You can find more information about the docking control and its elements you can check out this help article.
For more information how to manage the controls dynamically please refer to this help article: http://www.telerik.com/help/wpf/raddocking-managing-docking-controls-dynamically.html

Hope this information is helpful. Please let us know if you have any other questions.

Kind 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
Rod Yager
Top achievements
Rank 1
Answers by
Konstantina
Telerik team
Share this question
or