Hi, Telerik team
I have some heavy and rich in features application. I need to support it, so even if i know it was written with some of Telerik controls that are obsolete now I am not allowed to change everything I want to. So please, excuse me for this question.
I have the following layout:
On a winform there is a RadDock.
In it there are two ToolTabStrips, one on the left side and the other one on the right side. In the middle there is DocumentContainer with DocumentTabStrip objects inside it.
I am asked to implement the following functionality:
Some collapse/restore button that will hide both ToolTabStrips and maximize form. On restore it should return ToolTabStrips to their places, form to normal state. I did it like this:
Well, there is one more thing I need to be done and I don't know how to do it. DocumentContainer should be maximized and rstored to initial size as well. How can I acheive it?
Thanks in advance!
I have some heavy and rich in features application. I need to support it, so even if i know it was written with some of Telerik controls that are obsolete now I am not allowed to change everything I want to. So please, excuse me for this question.
I have the following layout:
On a winform there is a RadDock.
In it there are two ToolTabStrips, one on the left side and the other one on the right side. In the middle there is DocumentContainer with DocumentTabStrip objects inside it.
I am asked to implement the following functionality:
Some collapse/restore button that will hide both ToolTabStrips and maximize form. On restore it should return ToolTabStrips to their places, form to normal state. I did it like this:
private void OnMenuViewFullScreenClick(object sender, EventArgs e)
{
_isMaximized = !_isMaximized;
if (_isMaximized)
{
toolTabStripLeft.Hide();
toolTabStripRight.Hide();
WindowState = FormWindowState.Maximized;
tbutFullScreen.Checked = true;
}
else
{
toolTabStripLeft.Show();
toolTabStripRight.Show();
WindowState = FormWindowState.Normal;
tbutFullScreen.Checked = false;
}
}
Well, there is one more thing I need to be done and I don't know how to do it. DocumentContainer should be maximized and rstored to initial size as well. How can I acheive it?
Thanks in advance!