ACTIVE MALWARE WINDOWS

How to fix
What is DesktopWindowXamlSource empty window and how to remove it
on Windows

Discover the DesktopWindowXamlSource empty window issue on Windows 10 and 11. Get expert-tested solutions to remove it efficiently, fixed in minutes.

What is DesktopWindowXamlSource empty window and how to remove it?
Quick Summary
Impact level
Medium
Est. time
10 minutes
Offer Fortect PC Suite
Fix it now →
Ad · we may earn a commission
0 Comments
01

Why does What is DesktopWindowXamlSource empty window and how to remove it occur?

  • Improper use of the DesktopWindowXamlSource API
  • Error in the implementation of the API
  • Related to OneDrive
  • Possible system file corruption
  • Outdated version of OneDrive
Offer Fortect PC Suite

Repairs Windows system files, removes malware, and restores a clean OS state — without reinstalling.

Ad · we may earn a commission
Get Fortect PC Suite ↗

Hello. I noticed an empty window named DesktopWindowXamlSource on my Windows taskbar. What is it and how do I remove it?

DesktopWindowXamlSource is a Windows API that allows an app to host XAML controls within a desktop (Win32) window. An empty window may appear if the API is being used improperly or if there is an error in the implementation. Apparently, the empty window in the taskbar is related to OneDrive. According to Microsoft, the bug was supposedly fixed in 2021.[ref en-1]

However, the Microsoft forums have been recently flooded with people experiencing the issue again. When users try to close the DesktopWindowXamlSource empty window, it closes OneDrive as well. Currently, it is unknown what exactly causes this bug.

Users that suffer from this problem should try to restart the problematic app or their device and see if the issue persists. It is also advisable to look for any error messages or exceptions that may be related to the empty window and troubleshoot based on those. Additionally, some users have reported that updating to the latest version of OneDrive can also fix the problem.

If these tips do not solve the issue, you should try uninstalling OneDrive and reinstalling it to see if the empty window disappears. in this guide, you will find 4 steps that should help you remove DesktopWindowXamlSource empty window.

What is desktopwindowxamlsource empty window and how to remove it
What is desktopwindowxamlsource empty window and how to remove it

Keep in mind that the manual troubleshooting process can be lengthy. If you suspect any underlying system problems, you should use a maintenance tool like [d1] that can fix most system errors, BSODs,[ref en-2] corrupted files, and registry[ref en-3] issues. Otherwise, follow the step-by-step instructions below.

Solution 1. Install Windows Updates

  • Click Settings from your start menu and click Update & Security
  • Choose Windows Upgrade from the left panel and click the Check for updates button, and then your computer will check for, download, and install any updates found

Install windows updates
Install windows updates

Solution 2. Repair Corrupted System Files

Use Command Prompt commands to repair system file corruption:

  • Open Command Prompt as administrator
  • Use the following command and press Enter:
    sfc /scannow

Repair corrupted system files
Repair corrupted system files

  • Reboot your system
  • If SFC returned an error, then use the following command lines, pressing Enter after each:
    DISM /Online /Cleanup-Image /CheckHealth
    DISM /Online /Cleanup-Image /ScanHealth
    DISM /Online /Cleanup-Image /RestoreHealth

Solution 3. Update OneDrive

  • Press the Windows key + R to open the Run dialog box
  • Enter the following command and hit OK:
    %localappdata%\Microsoft\OneDrive\onedrive.exe /reset
  • Then do the same with:
    %localappdata%\Microsoft\OneDrive\update

Update onedrive
Update onedrive

  • Restart your device and check if the problem persists

Solution 4. Reinstall OneDrive

If none of the above methods removed DesktopWindowXamlSource empty window, you should try uninstalling and reinstalling OneDrive. Most users experiencing this problem report that the issue went away after performing this step. Here is how to reinstall OneDrive:

  • Uninstall OneDrive from your system
  • Press Windows key + R to launch the Run box
  • Type %userprofile%, and click OK
  • Show hidden files and folders in File Explorer
  • Open the AppData folder and then open the Local folder
  • Rename the OneDrive folder
  • Open the Microsoft folder and rename the OneDrive folder inside it
  • Click Windows Search and type Credential Manager

Reinstall onedrive
Reinstall onedrive

  • After opening the Credential Manager, select Windows Credentials
  • Scroll down and remove the virtualapp/didlogical and SSO_POP_Device credentials
  • Restart your computer
  • Download the OneDrive setup file. Now, run the installer file to install OneDrive on your system

Bottom line

To resolve the DesktopWindowXamlSource empty window issue, users can try installing Windows updates, repairing corrupted system files, or updating OneDrive. If these solutions do not work, consider uninstalling and reinstalling OneDrive to see if the problem persists.

Frequently asked questions

The DesktopWindowXamlSource empty window typically appears due to issues with certain applications that use XAML for their UI, particularly when they fail to load properly. This can happen after system updates or when there are compatibility issues with specific software.

You can remove the empty window by restarting the application that triggered it or by ending the task in Task Manager if the application is unresponsive. If the problem persists, consider updating or reinstalling the affected application.

To prevent the empty window from reappearing, ensure that all your applications and Windows 11 are up to date with the latest patches. Additionally, check for compatibility settings or uninstall any problematic applications that frequently cause this issue.

Did this fix work for you?
Natalie Park

Written & verified by

Windows Update & Maintenance Specialist
Windows Update troubleshooting Update error codes System maintenance WSUS configuration Feature update recovery

Natalie Park specialises in Windows Update troubleshooting and long-term system maintenance. She covers failed and stuck updates, error codes, component store corruption, and the disruption caused by problematic feature updates. Natalie's guides take readers from reading the specific Windows Update error code through manual component repair, WSUS configuration, and clean update procedures. She also covers routine maintenance tasks — driver updates, disk health monitoring, event log interpretation — that keep Windows running reliably over years of use.

0 Comments

Be the first to comment

Still worried? Run a free check.

Paste any URL or domain — we'll scan it against 4.2M known threats in 10 seconds.

View full scanner → Add to your website →