Hello @Michael Six ,
Welcome to Microsoft Q&A forum.
I believe that you got this issue when you were debugging your project in Visual Studio.
Actually, this is a feature(XAML Hot Reload) of Visual Studio, and it is enabled by default in VS 2022 and later versions. You can disable it by selecting Debug > Options > Debugging > XAML Hot Reload > uncheck "Enable XAML Hot Reload" or uncheck other options for specific project types.
Please check this document: Verify that XAML Hot Reload is enabled for more details.
Best Regards,
Tianyu
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
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.