dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
22.04k stars 1.73k forks source link

Add BlazorWebView to the WPF toolbox #4730

Open danroth27 opened 2 years ago

danroth27 commented 2 years ago

The Windows Forms BlazorWebView shows up in the VS Toolbox, but the WPF BlazorWebView doesn't. It would be nice if it did.

Eilon commented 2 years ago

I've been saving this link but haven't read it yet: https://docs.microsoft.com/nuget/guides/create-ui-controls

Maybe it's super easy to do?

danroth27 commented 2 years ago

See https://docs.microsoft.com/en-us/nuget/guides/create-ui-controls#add-toolboxassets-pane-support-for-xaml-controls. Looks like all we need to do is add a tools/VisualStudioToolsManifest.xml file to get the WPF BlazorWebView to show up in the toolbox. Something like this:

<FileList>
  <File Reference = "Microsoft.AspNetCore.Components.WebView.Wpf.dll">
    <ToolboxItems UIFramework="WPF" VSCategory="Managed Package">
      <Item Type="Microsoft.AspNetCore.Components.WebView.Wpf.BlazorWebView" />
    </ToolboxItems>
  </File>
</FileList>
ghost commented 1 year ago

We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.