spiegelp / MaterialDesignExtensions

Material Design Extensions is based on Material Design in XAML Toolkit to provide additional controls and features for WPF apps
https://spiegelp.github.io/MaterialDesignExtensions/
MIT License
753 stars 122 forks source link

MaterialWindow - Window title border has white pixels #82

Open Maruhl opened 4 years ago

Maruhl commented 4 years ago

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.

D4N4M8 commented 3 years ago

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:

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.

Maruhl commented 3 years ago

@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