Hello Hristo,
thank you for your help. But what about to fix it directly in the RadRibbonForm? I know it's probably not the most important control you have, but maybe you can fix it there.
Nevertheless, thank you.
Regards,
Jan
public
partial
class
Form1 : Telerik.WinControls.UI.RadRibbonForm
{
private
FormWindowState lastWindowState;
public
Form1()
{
InitializeComponent();
this
.SizeChanged +=
this
.Form1_SizeChanged;
}
private
void
Form1_SizeChanged(
object
sender, EventArgs e)
{
if
(
this
.lastWindowState !=
this
.WindowState)
{
if
(
this
.WindowState == FormWindowState.Maximized)
{
this
.Padding =
new
Padding(4, 0, 4, 0);
}
else
if
(
this
.WindowState == FormWindowState.Normal)
{
this
.Padding = Padding.Empty;
}
this
.lastWindowState =
this
.WindowState;
}
}
}