![]() ![]() That means that in order to use it, the Microsoft Teams team have needed to build a new Teams desktop application, and then used the WebView2 control to “host” parts of the Teams experience. (if you disagree with this last bit, that’s OK, I’m just trying to broadly explain the difference) WebView2 is a control that is part of an application, whereas Electron is the application (sort of). It’s a powerful enough web-rendering control to host the Teams application, it would appear, and it’s using this control that the recently demoed application shown in Windows 11 is being built. WebView2 uses the newer Edge rendering engine and is supported across many more Windows platforms. WebView used the original Edge (Trident) rendering engine and was a Windows10 only control. ![]() The reason it’s called WebView2 is that it replaces the WebView control, which in turn replaced the WebBrowser control, which old-school Win32 developers may remember. It is a control that renders webpage experiences, using the Chromium rendering engine built into Edge. It’s quite a sophisticated control but it’s still just a control. WebView2 is a control, like a text box, a button or a label is a control. It provides an abstraction to the desktop and means that all the “real” work of the application has to happen in JavaScript, with Electron being the “gateway” through which applications interact with the underlying desktop (for instance to show a popup or respond to a device being plugged in). Electron is a wrapper application technology, to enable you to build something that is cross-platform but still a desktop application, and it is a host to a web application. I think this is an important distinction to make. ![]() WebView2 != Electron: Teams will be a “proper” Windows application
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |