MicrosoftEdge / MicrosoftEdge/WebView2Feedback

Add popup WebView2 window method

Open
#2,221 10 comments 1 reaction 1 assignee View on GitHub

@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.
}

AB#38444170

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.