SingleInstance-WPF-样本 基于工作代码的示例单实例WPF项目 使用Mutex检查单个实例 /// /// This identifier must be unique for each application. /// private const string ApplicationSingleInstanceGuid = " {910e8c27-ab31-4043-9c5d-1382707e6c93} " ; private static System . Threading . Mutex _singleInstanceMutex ; private void Application_Startup ( object sender , StartupEventArgs e ) { // Create Singl