About the size problem caused by using WindowChrome.Chrome

WPF Studio, Themes, and Shared Library for WPF Forum

Posted 9 months ago by Morton
Avatar

Use ”themes:WindowChrome.Chrome” to customize the Window non-client area. When the component is maximized, the size will exceed the screen boundary.

My code is roughly as follows:

<Window xmlns="heep://schemas.microsoft.com/winfx/2006/xaml/presentation"

                xmlns:x="heep://schemas.microsoft.com/winfx/2006/xaml"

                xmlns:themes="http://schemas.actiprosoftware.com/winfx/xaml/themes"

                ResizeMode="CanResizeWithGrip"

                WindowState="Maximizad">

      <themes:WindowChrome.Chrome>

               <themes:WindowChrome/>

      </themes:WindowChrome.Chrome>

</Window>

When running in Window 10, the lower border of the window will exceed the screen range. There is about 11px pixel range covering the taskbar. How can I avoid this problem?

[Modified 9 months ago]

Comments (6)

Posted 9 months ago by Morton
Avatar

Supplement: This problem occurs when the focus is on the form, but it is normal when the mouse focus is on the taskbar

Posted 9 months ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hello,

You posted this in our Avalonia forums but I assume you meant to post it in the WPF forums?  I can move it if so.

Can you provide more information such as:

  • What version of our controls are you using?
  • What Actipro theme do you have active?
  • What .NET version are you using?
  • How many monitors are you using and what is the resolution of each?
  • If multiple monitors, where does this problem occur?


Actipro Software Support

Posted 9 months ago by Morton
Avatar

Yes, I should post it in the WPF forum, please move it.

1. I am using version 24.1.1, I tried upgrading to 24.1.2, but it didn't work.
2. We are currently using the WPF control section.
3. My .NET version is net8.0-windows.
4. I use two monitors, with resolutions of 2560 × 1440 and 1366 × 768.
5. Both of my monitors have this problem.

Please reply to us as soon as possible, thank you.

Posted 9 months ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hello,

Can you also tell us:

  • What DPI do you have on each monitor?
  • If you set it so there is a single monitor only, do you still see the issue?


Actipro Software Support

Posted 9 months ago by Morton
Avatar

Display 1:

Desktop resolution : 1366 × 768

Active signal resolution : 1366 × 768

Refresh rate (Hz) : 59.790 Hz

Bit depth : 8-bit

Display 2:

Desktop resolution : 2560 × 1440

Active signal resolution : 2560 × 1440

Refresh rate (Hz) : 59.951 Hz

Bit depth : 8-bit

I don't think this is caused by my monitor, because my colleague's computer also has the same problem.

I removed display 2 and kept only one monitor, the problem still existed.

[Modified 9 months ago]

Posted 9 months ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hello,

Thank you for the information.  We aren't seeing that issue here on a test Windows 10 machine.  Could you email our support address and send a screenshot showing what you see?  Please reference this thread when you do so, thanks.


Actipro Software Support

The latest build of this product (v24.1.5) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.