79109292

Date: 2024-10-21 08:59:37
Score: 1
Natty:
Report link

It's possible to do this by code, you have to use "Switch" for both AppContext.SetSwitch:

AppContext.SetSwitch("Switch.System.Windows.Media.ShouldNotRenderInNonInteractiveWindowStation", false);
AppContext.SetSwitch("Switch.System.Windows.Media.ShouldRenderEvenWhenNoDisplayDevicesAreAvailable", true);

And this must be done before Initializing the Main Window! Works for .NET Framework and .NET 5++

Reasons:
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: user27908041