question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

The window background is not shown correctly in the designer

See original GitHub issue

Describe the bug

If one designs a MetroWindow in the Visual Studios designer it is not shown correctly. It is shown correctly at runtime. This issue is more visible if one uses the dark theme

Steps to reproduce

  1. Create a blank App with MahApps.Metro imported
  2. Set the theme to dark
  3. Create a new MetroWindow
  4. You will notice that the Background is white

Expected behavior

MetroWindow should render the Background correctly. It does if one sets the Background explicitly in XAML

Sample

see https://github.com/Volmancer/OWGENC

Environment

MahApps.Metro version: v2.0.0 v2.1.0 tested
Windows build number: Win10 and Win7 tested
Visual Studio: 2019 16.6.3
Target Framework: .Net Core 3.1 (v4.5.2, v4.7.2)

Screenshots

image Designer

image Runtime

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
punker76commented, Jul 8, 2020

Oh yeah, I didn’t noticed that the Background was set explicitly. Doesn’t work in preview. But it’s not a MahApps issue, it should be delegate to VS team.

2reactions
timuniecommented, Jul 8, 2020

Created an issue at VS: https://developercommunity.visualstudio.com/content/problem/1106526/wpf-designer-the-window-background-is-not-shown-co.html

The more people vote for it, the better the chance that MS looks for it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Visual studio designer view not displaying correctly after ...
I have found the answer. If you go to control panel > display > 'Set a custom scaling level', you may notice that...
Read more >
Custom Gauge background image not displaying corre...
When I use a custom background image it does not get displayed correctly inside the application. It's displayed somewhat "zoomed in". I've attached...
Read more >
The background behind overlay don't work correctly
The background behind Overlay on the first window is 100%, after pressing the button the second Overlay should open with Background behind ...
Read more >
Fix image display performance
Learn how to fix display performance in InDesign. ... These options control how graphics are displayed on the screen, but they do not...
Read more >
Remove the background of a picture in Office
Learn how to remove the background from a picture in a Microsoft Office file. Use the automatic background removal or draw lines to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found