For windows launched in full size, we need to calibrate the window as much as the border size for Maximized to work well.
Otherwise, the border area will be located outsize of screen.
realWindowSize.Width >= screenWidth && realWindowSize.Height >= screenHeight &&
IsMaximized() == false)
{
+ WindowSize -= new Size2D((int)borderInterface.BorderLineThickness * 2, (int)(borderHeight + borderInterface.BorderLineThickness * 2));
Maximize(true);
borderInterface.OnMaximize(true);
- ResizedEventArgs e = new ResizedEventArgs();
- e.WindowSize = WindowSize;
- OnBorderWindowResized(this, e);
}
else
{