WPF UI Not Rendering in Custom Credential Provider Within UAC

Priyanka Desai 5 Reputation points
2025-02-03T07:11:42.3666667+00:00

I am developing a custom Credential Provider where I launch a WPF application as a Class Library. The WPF window is supposed to display UI elements like buttons and textboxes. However, when the Credential Provider loads and the WPF window appears inside UAC, only an empty window is rendered—no UI controls are visible.

  1. When using WinForms instead of WPF, everything works fine inside UAC.
  2. The issue only occurs inside UAC mode—outside UAC, WPF renders correctly.
  3. I cannot modify the Credential Provider's C++ implementation; the fix must be applied on the WPF side. Why is my WPF UI not rendering correctly within the UAC environment for non Admin user, and how can I fix it while keeping WPF?
Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,822 questions
Windows 10 Security
Windows 10 Security
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Security: The precautions taken to guard against crime, attack, sabotage, espionage, or another threat.
2,995 questions
{count} vote

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.