Hello Peter,
Thank you for writing.
You can use two approaches for the purpose:
1. Define the contents of the different DocumentWindows in UserControls and then when needed, add the UserControl to a DocumentWindow instance and add the latter to RadDock. This approach will give you the flexibility to populate your UserControls at design time.
2. You can create descendants of DocumentWindow and programmatically populate them with the desired controls, then add them to RadDock when needed. Here is an example:
In both cases, the UserControl or the DocumentWindow declarations can be in separate files.
Initially, you can add all the windows to RadDock. Then you can hide the ones that you do not want to display, by setting their
DockState to Hidden. To show them back, set their
DockState to
Docked or
TabbedDocument.
You can also use the Show/Close methods, but before that you have to set the
CloseAction property to Hide, so the windows don't get disposed on close.
I hope that you find this information useful. Should you have any other questions, do not hesitate to contact us.
Regards,
Stefan
Telerik
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 Feedback Portal and vote to affect the priority of the items