'Displaying external Applications in a Frame / Viewbox in WPF Application [duplicate]
I am creating a WPF application using C# code and have run into a problem. I am trying to load external applications, such as MS Word, Excel, Outlook, Teams, etc, from the application when I click a button and would like it to show/open this application in my WPF main window frame. Is this possible to achieve?
I found a piece of code that I have used in the code behind but obviously, it just opens the program as normal,
private void Outlook_Click(object sender, RoutedEventArgs e)
{
MainWindowFrame.Content = System.Diagnostics.Process.Start("outlook.exe");
}
What do I need to do in order to achieve my aforementioned goal? Am I even correct in using a frame or should I be using something else?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
