You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a RibbonWindow has either MaxWidth or MaxHeight set (to a value less than the screen size), when maximising the window there is an extra border along the top edge. Looking closely it appears that there's extra window chrome being shown around the edge of the ribbon window, but it's more obvious at the top edge because there are tiny minimise/maximise/close buttons in the corner separate from the ribbon's buttons.
It's colour is independent from the ribbon background so stands out on a dark theme.
I can reproduce it in the showcase application by adding MaxWidth="1000" to TestWindow.xaml.
Screenshot (the red border I added in paint to highlight where it is :))
Just been testing this and #454 with your latest changes and it's looking much better thanks :)
There does still seem to be a problem though if you maximise a window with SizeToContent set (and haven't manually resized first). I wasn't sure if the problem relates to this issue or #454 (or should be raised as a separate issue entirely).
If I add SizeToContent="WidthAndHeight" to TestWindow.xaml and maximise, the window size docks to the top of the screen but its size is unchanged (not constrained to one monitor and the height doesn't change). The problem with the window chrome returns as well:
When trying to reproduce to capture the above screenshot it did sometimes resize the window correctly (although I can't seem to make it happen again) but the title wasn't being centered and the window buttons were missing (or off-screen):
Finally, if I also add MaxHeight="800" to TestWindow.xaml (with SizeToContent) then the window height will maximise to the correct height but will render black instead of resizing the content:
In all these cases if you restore the window and maximise a second time then everything looks correct.
Let's continue this issue in ControlzEx/ControlzEx#31 as this is caused by the implementation in ControlzEx. The same issues can be reproduced using the showcase application from ControlzEx.
If a RibbonWindow has either MaxWidth or MaxHeight set (to a value less than the screen size), when maximising the window there is an extra border along the top edge. Looking closely it appears that there's extra window chrome being shown around the edge of the ribbon window, but it's more obvious at the top edge because there are tiny minimise/maximise/close buttons in the corner separate from the ribbon's buttons.
It's colour is independent from the ribbon background so stands out on a dark theme.
I can reproduce it in the showcase application by adding MaxWidth="1000" to TestWindow.xaml.
Screenshot (the red border I added in paint to highlight where it is :))
Environment
The text was updated successfully, but these errors were encountered: