A set of demo projects, demonstrating an approach to load/reuse browser windows started from a WPF application via Glue42.
- Getting a reference to an application, registered in the Glue42 Desktop platform (or starting the app if no reference)
- Setting the application context to pass a URL through it
- Read the URL from the application context
- Set it to the IFrame source
- Subscribe to context changes and update IFrame source
- Subscribe to layout changes and pass the URL to preserve in context
- Start Glue42 Desktop
- Load the DotNetCaller projet in Visual Studio and rebuild in Debug mode
If in release, modify the path in the
deploy\deploy.bat
file - Run the
deploy\deploy.bat
file to have the configs and files copied - under the Glue42 library with a web server available to serve the JavaScript file.
- Use the App Manager (launchpad) to run the WPF-to-Host Web App loader application
- Use the two buttons to load the windows
- Change the code in
MainWindow.xaml.cs
by invokingReuseAppWithURL
instead ofStartAppWithURL
to reuse the same browser window