ElementHost control (Wpf Interoperability) do not display in Toolbox WinForms designer And Can not add Wpf UserControl in winform designer
See original GitHub issueEnvironment
VisualStudio 17.6.4
.NET version
- Windows Form App template
- .NET core 7.0
Did this work in a previous version of Visual Studio and/or previous .NET release?
It works in .NET framework 4.8
Issue description
- Can not display ElementHost (Wpf Interoperability)
- Can not add Wpf UserControl in the Winform in design mode
Steps to reproduce
- Create a new
Windows Form Appproject with a target framework 7.0. - Open Form1.cs in design mode
- Open Toolbox then search
ElementHost(not found this control)
Image WinFormApp .net core 7.0
But with .net framework 4.8 has it and works fine
Diagnostics
No response
Issue Analytics
- State:
- Created 2 months ago
- Reactions:2
- Comments:7 (5 by maintainers)
Top Results From Across the Web
Select WPF controls for Windows Forms
Walkthrough: Assign WPF content on Windows Forms at design time ... You can select any WPF control types that are included in your...
Read more >WPF control not displaying in ElementHost in WinForms app
I have a problem with a WPF control that I'm trying to host in an ElementHost in a WinForms app. The control is...
Read more >Can't add WPF components to toolbox
I was trying to establish that the toolbox itself was not having an issue and that the WPF Designer surface was activated since...
Read more >Embed WPF User Controls in WinForms Applications
At last, host the WPF UserControl on ElementHost. First, rebuild your solution, so the WpfUserControl is visible in the Toolbox. Now, open the ......
Read more >Mixing WPF and WinForms - Simple Talk
To add an ElementHost, then, you can drag it from the toolbox onto the designer or enter it in your code-behind file.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@MauNguyenVan the designer repo is currently closed source.
There are known issues in Winforms designer repo: https://github.com/microsoft/winforms-designer/issues/919, https://github.com/microsoft/winforms-designer/issues/2626.