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

WPF Studio, Themes, and Shared Library for WPF Forum

Posted 3 years ago by Gareth Parris - Software Developer, McLaren
Version: 16.1.0633
Environment: Windows 10 (64-bit)
Avatar

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

    <themes:WindowChrome.Chrome>
        <themes:WindowChrome HasCloseButton="True"
                             HasMaximizeButton="False"
                             HasMinimizeButton="False"
                             HasOuterGlow="True"
                             HasRestoreButton="False" />
    </themes:WindowChrome.Chrome>

If the window Resize mode is set like this:

        ResizeMode="CanMinimize"

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.

Thanks,

Gareth.

[Modified 3 years ago]

Comments (1)

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

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 (v2018.1 build 0675) was released 13 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.