MaterialDesignExtensions icon indicating copy to clipboard operation
MaterialDesignExtensions copied to clipboard

MaterialWindow - Window title border has white pixels

Open Maruhl opened this issue 5 years ago • 2 comments

Reproduce: Simple wpf app, where main window is a MaterialWindow and WindowState = "Maximized" in xaml. I use MaterialDesign in dark mode.

grafik

I colored the white pixels red so you can see it better.

If the app starts normally, and then you maximize the window, everything is fine.

Maruhl avatar Apr 16 '20 08:04 Maruhl

Hi,

I have the same problem in version 3.2.0:

View: image

Here you can see the 1 pixel large borders: image

I colored the the border: image

More Details:

  • I only have the problem on the primary screen (maybe it is due to the resolution and scaling?)
  • I reproduced the problem on several computers with different displays.
  • Only one screen may be connected to your computer.

Steps to reproduce:

  1. Start the application with windowState "normal"
  2. Click on the "maximize"-Button

Important: If you maximize the window via drag & drop (via header bar) the white borders are not available/visible.

D4N4M8 avatar Nov 09 '20 15:11 D4N4M8

@spiegelp

I did a little research and found the error. The DataTrigger for the border that adjusts the padding for the WindowState seems to be too large. If I set the padding to '6' I don't have this error anymore.

I created a pull request #146

Maruhl avatar May 25 '21 18:05 Maruhl