Skip to content

ElementHost control (Wpf Interoperability) do not display in Toolbox WinForms designer And Can not add Wpf UserControl in winform designer  #9443

@MauNguyenVan

Description

@MauNguyenVan

Environment

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)

ElemenHostNotFound

  • Can not add Wpf UserControl in the Winform in design mode

WpfControlCannotAdd

Steps to reproduce

  • Create a new Windows Form App project 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

image

But with .net framework 4.8 has it and works fine
Untitled

Diagnostics

No response

Metadata

Metadata

Labels

area-VSDesignerWindows Forms out-of-proc designer related issuesblocking-migrationAn issue that is preventing the developer from migrating from .NET Framework or earlier .NET

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions