MicrosoftEdge / MicrosoftEdge/WebView2Feedback
Add popup WebView2 window method
Open
@champnic is already working on this.
Since Mar 3, 2022.
feature request
priority-low
tracked
- Dominant language
- PowerShell
- Stars
- 526
- Forks
- 67
- PR merge metrics
- No merged PRs in 30d
Description
Currently we can use WebView2 control in WPF, UWP, Windows App SDK, etc. to load a web page embedded. It could be better if provide a method to popup a window with WebView2 and other default components like js function window.open() does but it is in host app side, such as following. So that we can call this method when we need popup a web window and no more customization requirement.
namespace Microsoft.Web.WebView2.Core;
public sealed class CoreWebView2
{
+ public static Window OpenWindow(string uri, CoreWebView2WindowFeatures windowFeatures = null);
+ public static Window OpenWindowToString(string htmlContent, CoreWebView2WindowFeatures windowFeatures = null);
// Other members.
}
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.