打开启动程序的App.xaml.cs文件加入下面代码[DllImport("user32",CharSet=CharSet.Unicode)]staticexternIntPtrFindWindow(stringcls,stringwin);[DllImport("user32")]staticexternIntPtrSetForegroundWindow(IntPtrhWnd);[DllImport("user32")]staticexternboolIsIconic(IntPtrhWnd);[DllImport("user32")]staticexternboolOpenIcon(IntP