DesktopWindowXamlSource Empty Window: How to Remove It?

Repairing the corrupt system files will fix this problem

by Vlad Turiceanu
Vlad Turiceanu
Vlad Turiceanu
Editor-in-Chief
Passionate about technology, Windows, and everything that has a power button, he spent most of his time developing new skills and learning more about the tech world. Coming... read more
Reviewed by Alex Serban
Alex Serban
Alex Serban
Windows Server & Networking Expert
After moving away from the corporate work-style, Alex has found rewards in a lifestyle of constant analysis, team coordination and pestering his colleagues. Holding an MCSA Windows Server... read more
Affiliate Disclosure
  • This DesktopWindowXamlSource empty window error is linked with Microsoft OneDrive. 
  • To fix this error, check for Windows update, update or reinstall OneDrive.

XINSTALL BY CLICKING THE DOWNLOAD FILE
To fix various PC problems, we recommend Restoro PC Repair Tool:
This software will repair common computer errors, protect you from file loss, malware, hardware failure and optimize your PC for maximum performance. Fix PC issues and remove viruses now in 3 easy steps:

  1. Download Restoro PC Repair Tool that comes with Patented Technologies (patent available here).
  2. Click Start Scan to find Windows issues that could be causing PC problems.
  3. Click Repair All to fix issues affecting your computer's security and performance
  • Restoro has been downloaded by 0 readers this month.

DesktopWindowXamlSource is a Windows application programming interface (API) that lets an app host XAML controls in a desktop window. If you see DesktopWindowXamlSource empty window, then it could be due to API being misused. 

The issue is linked with Microsoft OneDrive and got fixed in 2021. However, the forums flooded with questions regarding the error suggest otherwise. 

Here in this guide, we will discuss some methods to fix the error after discussing the causes. Let’s get started! 

What causes DesktopWindowXamlSource empty window to come up? 

There can be various reasons for the empty window to come up; some of the popular ones are: 

  • Problem with Windows UI automation framework –  If there is an issue with the Windows UI automation framework, which is responsible for providing accessibility features for Windows apps, then it might be stuck with the desktop window XAML source not responding
  • Windows updates pending – If your computer has pending Windows updates, you might get this error. 
  • Problem with the OneDrive app – If the app in question is not working fine or has some missing files, you could get this error. 
  • Corrupt system files – If your Windows has damaged system files, then it could cause a lot of issues, including this one. 

What can I do to remove the DesktopWindowXamlSource empty window?

Before engaging in the troubleshooting steps to eliminate this problem, please perform these preparatory checks: 

  • Restart the OneDrive app
  • Restart your computer 

1. Update the Windows 

  1. Press Windows + I to get Settings.
  2. Click Windows Update from the left pane, and click Check for updatesWindows Update
  3. If there is an update, download and install it.
  4. Restart your computer when prompted.

2. Repair corrupt system files 

  1. Press the Windows key, type CMD and click Run as administratorDOS COmmand Prompt - DesktopWindowXamlSource empty windowjoin windows 11 to domain
  2. Type the following command and press Enter: sfc/scannow
  3. Copy and paste the following commands one by one and press Enter after every command: DISM /Online /Cleanup-Image /CheckHealth DISM /Online /Cleanup-Image /ScanHealth DISM /Online /Cleanup-Image /RestoreHealth
  4. Wait for the process to complete, and restart your computer. 

3. Update OneDrive

  1. Press Windows + R to open the Run window. 
  2. Type the following command to reset OneDrive and press Enter : %localappdata%\Microsoft\OneDrive\onedrive.exe /resetRun command - Update One Drive -DesktopWindowXamlSource empty window
  3. Next, copy and paste the following command to update OneDrive and press Enter: %localappdata%\Microsoft\OneDrive\update
  4. Finally, restart your PC to let the changes take place. 

4. Reinstall OneDrive

  1. Press Windows + R to open the Run window. Programs and Features - DesktopWindowXamlSource empty window
  2. Type appwiz.cpl and press Enter to open Programs and features.
  3. Locate and select Microsoft OneDrive. Then, click Uninstall from the menu. Uninstall OneDrive -Programs and Features - DesktopWindowXamlSource empty window
  4. Wait for the app to be uninstalled. 
  5. Now download OneDrive.
  6. Double-click the installer file and follow the onscreen instructions to complete it. 

So, these are the methods to remove DesktopWindowXamlSource empty window. Try them and let us know what worked for you to resolve this OneDrive error in the comments section below.

Still having issues? Fix them with this tool:

SPONSORED

If the advices above haven't solved your issue, your PC may experience deeper Windows problems. We recommend downloading this PC Repair tool (rated Great on TrustPilot.com) to easily address them. After installation, simply click the Start Scan button and then press on Repair All.

This article covers:Topics: