Hello,
After in-depth investigation, activating the existing instance is better than mutex.
Because when using Mutex, the program will still go through the process of starting and exiting, but using the instantiation feature provided by WinUI, the second program window will not be launched.
You could refer to Making the app single-instanced for more detailed information. Best Regards,
Alec Liu.
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.