Skip to content

Files

Latest commit

Aug 29, 2022
8b7047b · Aug 29, 2022

History

History
51 lines (40 loc) · 1.8 KB

kb-buttons-distorted-or-pixelated-buttons.md

File metadata and controls

51 lines (40 loc) · 1.8 KB
title page_title description type slug position tags ticketid res_type
Fix Pixelated or Distorted Buttons on DELL Machines
Resolve Stretched Pixels in Telerik RadButton
Avoid pixelated or distorted pixels rendering when using Telerik WPF controls on DELL Machines.
how-to
kb-buttons-distorted-or-pixelated-buttons
0
distorted, pixelated, DELL, buttons
1544097
kb

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:

  1. Open the BlackApps.dat that can be found on this path: C:\ProgramData\A-Volute\DellInc.AlienwareSoundCenter\Modules\ScheduledModules\Configurator\BlackApps.dat

  2. 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.

[C#] Set the RenderOptions.ProcessRenderMode property

{{region kb-buttons-distorted-or-pixelated-buttons-0}} System.Windows.Media.RenderOptions.ProcessRenderMode = System.Windows.Interop.RenderMode.SoftwareOnly; {{endregion}}

[VB.NET] Set the RenderOptions.ProcessRenderMode property

{{region kb-buttons-distorted-or-pixelated-buttons-1}} System.Windows.Media.RenderOptions.ProcessRenderMode = System.Windows.Interop.RenderMode.SoftwareOnly {{endregion}}