Theme problem when clicking on titlebar of window with ResizeMode="CanMinimize"

WPF Studio, Themes, and Shared Library for WPF Forum

Posted 8 years ago by Gareth Parris - Software Developer, McLaren
Version: 16.1.0633
Platform: .NET 4.5
Environment: Windows 10 (64-bit)

Hi, I've noticed an issue when we have a standard WPF window and apply the Actipro WPF chome like so:

        <themes:WindowChrome HasCloseButton="True"
                             HasRestoreButton="False" />

If the window Resize mode is set like this:


The themed skin on the title bar and window close button gets lost and renderer differently when you click on it.

It is very easy to reproduce. I've sent you an example.



[Modified 8 years ago]

Comments (1)

Posted 8 years ago by Actipro Software Support - Cleveland, OH, USA

Hi Gareth,

This is a known issue we've run into in the past and have never been able to resolve in our ThemeManager.  For some reason, using the "CanMinimize" ResizeMode will trigger the system to display classic title bar buttons in some scenarios.  Those "classic" title bar buttons are rendered by the system and not us.  We're not sure why they start showing up.

The workaround is to use "CanResize" instead, and set the MinWidth/MaxWidth to the desired Width value, and MinHeight/MaxHeight to the desired Height value.  That will achieve the same result as a "CanMinimize" setting but won't run into the issue.

Actipro Software Support

The latest build of this product (v24.1.2) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.