Fix Pixelated or Distorted Buttons on DELL Machines
Environment
Product Version | 2022.2 621 |
Product | RadButtons for WPF |
Description
Buttons can appear distorted or pixelated on Dell machines. This behavior can also be present in some of the native WPF controls.
Solution
To prevent this behavior from occurring, there are two approaches that can be taken.
The first approach is to blacklist your application. To do so, you can follow these steps:
Open the BlackApps.dat that can be found on this path: C:\ProgramData\A-Volute\DellInc.AlienwareSoundCenter\Modules\ScheduledModules\Configurator\BlackApps.dat
Append the name of your process at the end of the file (for example, MyApplication.exe) and save it.
The second approach is to set the System.Windows.Media.RenderOptions.ProcessRenderMode
property to System.Windows.Interop.RenderMode.SoftwareOnly
before showing any WPF windows.
Set the RenderOptions.ProcessRenderMode property
System.Windows.Media.RenderOptions.ProcessRenderMode = System.Windows.Interop.RenderMode.SoftwareOnly;
System.Windows.Media.RenderOptions.ProcessRenderMode = System.Windows.Interop.RenderMode.SoftwareOnly