Я обнаружил необходимость запуска приложения WPF изнутри программы ac #.Я написал для меня простой браузер WPF под названием eBrowse.Затем меня попросили добавить его в программу ac #, которая уже используется.
Я пробовал System.Diagnostics.Process.Start(@"C:\eBrowse");
, но это не сработало.
Другая возможность, которая была найдена на веб-сайте:
myProcess.StartInfo.UseShellExecute = true;
// You can start any process, HelloWorld is a do-nothing example.
//myProcess.StartInfo.FileName = "C:\\HelloWorld.exe";
myProcess.StartInfo.FileName = @"C:\eBrowse";
myProcess.StartInfo.CreateNoWindow = true;
myProcess.Start();
// This code assumes the process you are starting will terminate itself.
// Given that is is started without a window so you cannot terminate it
// on the desktop, it must terminate itself or you can do it programmatically
// from this application using the Kill method.
Мне интересно, может ли быть невозможно запустить приложение WPF из c #.Любые идеи были бы великолепны.