-
Notifications
You must be signed in to change notification settings - Fork 710
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WinUI 3.0 Alpha (February 2020) w/ WebView2 ππ©βπ»π #1965
Comments
Are .NET Core 3, C#8 and there newer csproj type ready? |
Is WebView2 the only change, is there a fuller changelog available somewhere? What progress is there with Win32 runtime support with WinUI 3.0 XAML UI? |
@mdtauk Good question. The Feb 2020 alpha refresh includes all of the work since our last release in Nov. Although WebView2 is the biggest new feature, a number of other fixes have been made to increase stability and to prepare for open source. Progress was made on Win32 runtime support, however, it is not yet complete enough that we recommend additional self-hosting / exploring of this functionality at this point in time. |
Thank you for the reply. Good to know things are happening. Once the thing has been open sourced, change logs will become the norm :) |
@weitzhandler Support for .Net 5 and SDK-style projects is not yet ready. We're currently working on this as we speak. |
@adambarlow with WebView2 can a Progressive Web App (PWA) be installed or rather can service worker registration? Reasons for not wrapping it in a UWP could be:
|
I ma not able to run a WinUI3 UWP app with WebView2 v0.9.430. The app just crashes.
https://www.nuget.org/packages/Microsoft.Web.WebView2/0.9.430 |
@vascofernandes we did not test with this version of the WebView2 nuget package (as it wasn't released yet). Please try version 0.8.355. Also please open a new issue so we can discuss there. @nabilahmed739 the goal is to have a WPF element as well. So you would use that element and not the WinUI version for WPF apps. |
@adambarlow looks like this link to the interface is 404ing now? @azchohfi want to summarize your findings from moving the Monaco WebView wrapper over to the WebView2 alpha here? |
PR is here:
_view.UriSource = new Uri(@"file:///" + (await StorageFile.GetFileFromApplicationUriAsync(new Uri("ms-appx:///Monaco/MonacoEditor.html"))).Path); and also changed the html files I had inside the package to point to "./" instead of "ms-appx-web:///". |
@azchohfi I've updated the link to the CoreWebView2 interface in the OP. Your issues 1 and are covered there and therefore should be available once we are able to dot into the CoreInterface (hopefully in the next preview release). On your issue 3, are you trying to template WebView2 or trying to use it inside the template for another control? On #4 we plan to add support for local content it didn't make it to Alpha though. Thank you for the early feedback. |
@azchohfi @adambarlow issue 2 should be the |
I'm trying to use it inside the template of another control. |
@hawkerm Yes, but I have no idea how that will be mapped to a .Net type. I don't think it will. |
@hawkerm yes AddRemoteObject is correct. |
Hi! Will the .Net5 support for WinUI3 be cross platform or Windows-only? |
It'll be Windows only, but you'll be able to use the Uno Platform to make your WinUI app run on Android, iOS, Mac and as a website (WASM). |
Ok! @michael-hawker , will the .NET 5 support be able to do what follows:
Just like it is for wpf, winforms, asp.net on .net core 3.x ! That is, the .net core sdk style is used. |
@JensNordenbro I don't have any of those .NET 5 answers; not sure why you pinged me specifically. I maintain the Windows Community Toolkit. Pinging @ryandemopoulos to help direct this WinUI 3 question. π |
Hi @michael-hawker, it was because you profil suggest you work at Microsoft. Weitzhandler who kindly answered seems to work at Uno. I hope for ryandemopoulos then. |
@JensNordenbro lol, I don't work for either, I'm just an enthusiastic user. |
Ok @weitzhandler ;) I got the impression that Uno uses Xamarin.Forms underneath with som renderers for WebAssembly and that the solutions presented where tied to the full Visual Studio. I know from before that Xamarin.Forms is possible to build using CLI-only if one omitts the Android and IOS parts. Do you know if the same applies for Uno? (It relates to my question above). |
It doesn't. For WASM it uses Mono, for Android and iOS, it uses Xamarin.Android and Xamarin.iOS respectively.
I'm sorry, I don't. I can only guess it's probably supported, because of the above, and the WASM project is an ASP.NET Core project. And BTW, this looks like news you might find interesting. |
Yes @weitzhandler , that could be it! I checked out Uno, it has recently gotten "dotnet new"-templates to do what I want for webassembly targets. Although it feel to ugh to rely on a smaller consultancy firm for cross platform. Microsoft buy these guys ;) Perfect complement to Xamarin! |
@JensNordenbro |
Hi I created a very basic UWP app with a WebView2 control on the MainPage. When setting the Based on the requests it's doing it looks like the webview is fully active but just does not become visible. I already tried to set the I also tried same URL's with https://blog.stevensanderson.com/2019/11/18/2019-11-18-webwindow-a-cross-platform-webview-for-dotnet-core/ and I see the same behavior there so it might be an issue with Edge Beta as well I guess. Not sure if known issue? Also let me know if and where I would need to create specific issue for this. Thanks! |
@koenvd Do you also see this problem if trying to navigate to those URL's directly in the Edge Beta browser? I don't repro this issue. How recent is your install of Edge Beta? Since you can also repro the issue outside of WinUI, please log your issue in the Edge WebView Feedback project here: https://github.com/MicrosoftEdge/WebViewFeedback/issues/ |
@codendone I didn't see the issue when navigating to those URL's directly in (latest) Edge Beta. However I uninstalled the beta and installed the stable version (81.0.416.68 (Official build) (64-bit)) and now everything started working! It looks great!! Thanks for the support! |
Any word on when we'll see the next Alpha of |
@phraemer, the latest improvements will be coming in the Preview 1 release of WinUI 3 that is going to release for BUILD 2020. |
Great news @adambarlow , thanks! |
I also want to echo the experience that @koenvd had. I had the latest Edge Canary and Dev installed, and my WebView2 components wouldn't render correctly. Uninstalling both Canary and Dev and installing Stable fixed the issue. |
Now that WinUI 3.0 Preview 1 has been released I think we can close this issue in favor of #2472. |
WinUI 3.0 Alpha (February 2020) w/ WebView2
As mentioned in the recent community call we now have a WinUI 3.0 Alpha available w/ Chromium-based Microsoft Edge WebView2!
Please note that WinUI 3.0 Alpha is a very early prerelease and has lots of known issues and missing functionality, so it isn't ready for production apps. Future previews and the first stable version of WinUI 3 in 2020 will add support for everything outlined in the roadmap.
In particular if you don't see an API in the WebView2 API spec and it is existing functionality of the current WebView, it is likely planned to be included on the base WinRT object, whose API is likely to closely match the current ICoreWebView2 interface.
Feedback on WebView2 can be posted as comments to this issue or alternatively on the WebView2 proposal.
Installation info
For installation info and known issues see:
WinUI 3.0 Alpha (February 2020)
There's a super-short survey with the download link - we'd love to know more about how you're interested in using WinUI.
Please try out the Alpha, let us know what you think and open issues if you run into any bugs that aren't listed already!
What's next?
As outlined in the roadmap we're hard at work getting WinUI ready for open source development, plus working toward a more complete preview, .NET 5 support, and more!
The text was updated successfully, but these errors were encountered: