RibbonWindow SizeToContent Bug

Ribbon for WPF Forum

Posted 12 years ago by Marcin Nowacki
Version: 11.2.0551
Platform: .NET 3.5
Environment: Windows 7 (64-bit)
Avatar
Hi, try to set this parameters to RibbonWindow
<ribbon:RibbonWindow x:Class="WpfApplication14.RibbonWindow1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:shared="http://schemas.actiprosoftware.com/winfx/xaml/shared" 
    xmlns:ribbon="http://schemas.actiprosoftware.com/winfx/xaml/ribbon" 
    ApplicationName="RibbonWindow1" 
    Width="400" Height="400"
    MinWidth="250" MinHeight="250"
    SizeToContent="WidthAndHeight">
</ribbon:RibbonWindow>
On Windows7 Aero the window appears black on the bottom.
Is there any workaround this issue?

Comments (2)

Posted 12 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Marcin,

We did some testing of this and it appears to only show up if the desired height is smaller than the MinHeight you specify. What's happening is that we have to do some API tweaks to the RibbonWindow to get it to allow WPF to support rendering in the non-client area of the window, for the QAT, etc. Unfortunately those API tweaks cause a couple subtle negative side effects with how tall Windows thinks the window is. Unfortunately your issue isn't something we can really fix at this time.

That being said, there is a workaround. If you take off the MinHeight on the RibbonWindow and instead put MinHeight on your root child control of the Window, it will work without displaying the black box.


Actipro Software Support

Posted 12 years ago by Marcin Nowacki
Avatar
Thanks, this workaround closes the case.
The latest build of this product (v24.1.2) was released 2 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.