I have RadForm-derived class that I'm adding as RadDock document windows. How do I make them stay the same size as the container? Please see attachment.
The code I'm using is something like this:
var view =
new
MyView(rule)
{
Dock = DockStyle.Fill,
TopLevel =
false
,
FormBorderStyle = FormBorderStyle.None,
MdiParent =
this
,
Text =
"blah"
,
};
view.Show();
var wnd =
new
DocumentWindow {Text =
"blah"
};
wnd.Controls.Add(view);
radDock1.AddDocument(wnd);
I'm using an older version of Telerik at the moment. The version of RadDock.dll is 2017.3.912.40 and Runtime version is v4.0.30319.