Skip to content
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

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

Open
MisinformedDNA opened this issue Jul 19, 2022 · 2 comments
Labels
doc-idea Indicates issues that are suggestions for new topics [org][type][category] dotnet-framework/svc Pri2 Medium priority wpf/subsvc

Comments

@MisinformedDNA
Copy link

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, 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.

@dotnet-bot dotnet-bot added the ⌚ Not Triaged Not triaged label Jul 19, 2022
@adegeo adegeo added the doc-idea Indicates issues that are suggestions for new topics [org][type][category] label Jul 20, 2022
@dotnet-bot dotnet-bot removed the ⌚ Not Triaged Not triaged label Jul 20, 2022
@adegeo
Copy link
Contributor

adegeo commented Jul 20, 2022

@MisinformedDNA Thank you for creating this issue to track this request. You simply need to add <UseWPF>true</UseWPF> in your project file (under <PropertyGroup>) to pull in all the WPF libraries.

@MisinformedDNA
Copy link
Author

OK. Thanks. I guessed that was all I needed, but I was experiencing another issue and couldn't find anything to confirm that that was all I needed. It would be nice for the documentation to explicitly call that out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc-idea Indicates issues that are suggestions for new topics [org][type][category] dotnet-framework/svc Pri2 Medium priority wpf/subsvc
Projects
None yet
Development

No branches or pull requests

4 participants