mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-03 21:25:13 +00:00
Embedding Electron as Panes in a WinForms or WPF Window or Equivalent X-Platform Window? #264
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @pha3z on GitHub (Feb 4, 2019).
Originally assigned to: @GregorBiswanger on GitHub.
My current project has this bill of needs:
Electron would be perfect for our project, except for the problem that you can't embed a native UI control in electron. Someone suggested the following solution:
Host our main app in a native window on each device.
Split the window into panes (like a sidebar, header bar, and main pane).
Host a web UI (such as Electron) in the sidebar pane and another web UI in the header pane
Host the native UI control in the main pane.
So basically we'd have two instances of a web UI (Electron) and one instance of a native UI element -- each one in its own pane. And they all three communicate with a backend that drives it all.
Only the master container window would need to vary per platform so that the native OS can host it.
To me, this seems like the holy grail of cross-platform support -- being able to display HTML/CSS/JS UI controls in the same window as native controls by "containerizing" everything in separate panes. Can this be done with either Electron or Electron.NET?