dotnet / dotnet/docs-desktop

Documentation needed for hosting WPF control in WinForms targeting .NET Core

Open
#1,441 2 comments 0 reactions 0 assignees View on GitHub
doc-idea dotnet-framework/svc Pri2 wpf/subsvc
Dominant language
C#
Stars
237
Forks
191
Avg merge
4d 16h
Merged PRs (30d)
3

Description

The documentation for hosting a WPF control in WinForms is only given for .NET Framework. There needs to be parallel documentation for .NET Core.

For instance, the .NET Framework documentation says to

> Add references to the following assemblies.
>
> - PresentationCore
> - PresentationFramework
> - System.Xaml
> - WindowsBase
> - WindowsFormsIntegration

But what is the equivalent in .NET Core?

I also took a look at [the samples](https://github.com/microsoft/WPF-Samples/blob/net60/Migration%20and%20Interoperability/WindowsFormsHostingWpfControl/FormsApp/FormsApp.csproj), but I don't see one where the WinForms app is targeting .NET Core.

---
#### Document Details

⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*

* ID: 99a8cc96-49a1-090f-5bae-e5ba59cce3b8
* Version Independent ID: cf31a26a-bd40-3cc7-93ea-3771a0c4e863
* Content: [Host a WPF composite control in Windows Forms](https://docs.microsoft.com/en-us/dotnet/desktop/wpf/advanced/walkthrough-hosting-a-wpf-composite-control-in-windows-forms?view=netframeworkdesktop-4.8)
* Content Source: [dotnet-desktop-guide/framework/wpf/advanced/walkthrough-hosting-a-wpf-composite-control-in-windows-forms.md](https://github.com/dotnet/docs-desktop/blob/main/dotnet-desktop-guide/framework/wpf/advanced/walkthrough-hosting-a-wpf-composite-control-in-windows-forms.md)
* Product: **dotnet-framework**
* Technology: **dotnet-wpf**
* GitHub Login: @adegeo
* Microsoft Alias: **adegeo**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.