Hello Anders,
I am not sure if your last message would mean that you have resolved your case, but still as far as I understand your requirement, here is what you can do:
ToolTabStrip rightHandStrip =
null
;
private
void
radButton1_Click(
object
sender, EventArgs e)
{
Map1UC map1 =
new
Map1UC();
ToolWindow twMap1 =
new
ToolWindow();
twMap1.Controls.Add(map1);
if
(rightHandStrip ==
null
)
{
this
.radDock1.DockWindow(twMap1, DockPosition.Right);
rightHandStrip = (ToolTabStrip)twMap1.Parent;
}
else
{
this
.radDock1.DockWindow(twMap1, rightHandStrip, DockPosition.Fill);
}
}
void
radButton2_Click(
object
sender, EventArgs e)
{
Map2UC map2 =
new
Map2UC();
ToolWindow twMap2 =
new
ToolWindow();
twMap2.Controls.Add(map2);
if
(rightHandStrip ==
null
)
{
this
.radDock1.DockWindow(twMap2, DockPosition.Right);
rightHandStrip = (ToolTabStrip)twMap2.Parent;
}
else
{
this
.radDock1.DockWindow(twMap2, rightHandStrip, DockPosition.Fill);
}
}
Basically, you should get the right ToolTabStrip the first time you need such, and then reuse it for docking the rest of the windows there. This will allow you to place all new 'map' controls in a common container positioned at right in RadDock.
I hope this helps.
Greetings,
Nikolay
the Telerik team