Height of titlebar changes when all buttons are disabled

WPF Studio, Themes, and Shared Library for WPF Forum

Posted 19 days ago by Christian Franz
Version: 19.1.0682
Avatar

The height of the titlebar in a window changes when all buttons are disabled. The titlebar has a greater height when at least one button is visible:

<themes:WindowChrome.Chrome>
<!-- At least one button is visible in the titlebar -->
     <themes:WindowChrome HasCloseButton="True" 
                          HasMaximizeButton="False" 
                          HasMinimizeButton="False" 
                          HasRestoreButton="False" />
</themes:WindowChrome.Chrome>

The height gets smaller when I deactivate all buttons:

<themes:WindowChrome.Chrome>
<!-- All buttons disabled -->
     <themes:WindowChrome HasCloseButton="False" 
                          HasMaximizeButton="False" 
                          HasMinimizeButton="False" 
                          HasRestoreButton="False" />
</themes:WindowChrome.Chrome>

Is there a way that the titlebar keeps it height? I don't want that the titlebar shrinks when I deactivate all buttons.

Comments (2)

Answer - Posted 19 days ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hello,

While we don't have anything at the moment in v2019.1 that would keep it at a minimum height, in the upcoming v2020.1, we've added an attached WindowChrome.TitleBarMinHeight property that you'll be able to set.  There also will be a theme resource that can be overridden with a global default value for this attached property.


Actipro Software Support

Posted 18 days ago by Christian Franz
Avatar

That sounds good. Thank you very much!

The latest build of this product (v2020.1.0) was released 17 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.