Integrate the electronjs application inside the Wpf application with maximized window.
I am using the below code and able to load the exe but window is minimized
string exeName = AppDomain.CurrentDomain.BaseDirectory + "electronjs\SnapELMOS.exe";
var procInfo = new System.Diagnostics.ProcessStartInfo(exeName);
procInfo.WorkingDirectory = System.IO.Path.GetDirectoryName(exeName);
procInfo.WindowStyle = ProcessWindowStyle.Maximized;
_childp = Process.Start(procInfo);
System.Windows.Forms.Panel _pnlSched = new System.Windows.Forms.Panel();
WindowsFormsHost windowsFormsHost1 = new WindowsFormsHost();
windowsFormsHost1.Child = _pnlSched;
electrongrid.Children.Add(windowsFormsHost1);
while (_childp.MainWindowHandle == IntPtr.Zero)
{
Thread.Yield();
}
_appWin = _childp.MainWindowHandle;
SetParent(_appWin, _pnlSched.Handle);
// dispatcherTimer.Stop();
could please help me what can i do for maximized window