Hello, Welcome to Micorosoft Q&A,
Currently, Microsoft Q&A supports the products listed over here: supported topics (more to be added later on). Above case description is about Visual Studio tool working principle for UWP xaml window, and it is out of the support scope. We suggest you post this problem in Visual Studio forum or send the feed back with Visual Studio.
Thanks
Nico Zhu
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.