Skip to content
This repository has been archived by the owner on Jun 5, 2023. It is now read-only.

We hope to take the lead in supporting WinForm in. Net 5.0 #123

Open
199621616 opened this issue Sep 24, 2020 · 1 comment
Open

We hope to take the lead in supporting WinForm in. Net 5.0 #123

199621616 opened this issue Sep 24, 2020 · 1 comment

Comments

@199621616
Copy link

199621616 commented Sep 24, 2020

SteveSandersonMS 在 https://blog.stevensanderson.com/2019/11/01/exploring-lighter-alternatives-to-electron-for-hosting-a-blazor-desktop-app/ :

What would have to be built to make this viable
As I’ve said, Blazor Desktop is currently just a quick proof-of-concept, built entirely during the waking part of my return journey from NDC Sydney. It would have a long way to go to turn into a viable product.

It would need:

Cross-platform support, e.g., using webview
Edge (Chromium) support, so that on Windows 10 we’re using the OS’s own Chromium-based browser instead of the Edge-based webview used in my prototype. This would also enable access to Chrome-style browser dev tools automatically.
Handling the scenario where a suitable webview can’t be found. In the rare case where a user’s OS doesn’t supply an acceptable webview technology, we could prompt the user and download a standalone Chromium distribution (likely via CEF).
Desktop APIs - this is the big one that would be expensive to achieve from scratch. Electron doesn’t just use Node as a general-purpose programming environment; it also ships a set of cross-platform APIs for interacting with the desktop OS for tasks like copying to clipboard, changing the taskbar/dock icon, displaying native dropdown menus, showing native prompts/dialogs, and many more such things. .NET Core itself supplies a huge proportion of the APIs that applications need, but today it doesn’t address many of the desktop-focused ones, since there isn’t today any standard cross-platform .NET Core-based UI technology. Any realistic app needs these capabilities. Conceivably it might be worth bundling Node just to get cross-platform implementations for these APIs (though still without bundling Chromium).
Publishing and downloading updates automatically

As far as the windows platform is concerned, all problems are not problems on. Net 5.0, except that they are not cross platform.

However, many industry applications need WebView to transform traditional applications, and many of them run on Windows platform. Therefore, we hope to make WebView the first to support WinForm in. Net 5.0

@199621616 199621616 reopened this Oct 4, 2020
@199621616 199621616 changed the title We hope to take the lead in supporting WPF and WinForm in. Net 5.0 We hope to take the lead in supporting WinForm in. Net 5.0 Oct 4, 2020
@congzhangzh
Copy link

if you focus on windows, how about this idea https://github.com/congzhangzh/desktoploveblazorweb/tree/wpf_wip

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants