visual studio 2022 error adding WPF usercontrol

wonmin han 40 Reputation points

As in the attached video below, if I just add a user control to the toolbox, it will forcefully close. Is there a way to fix it?

Visual studio 2022 is up to date.

Thank you for watching the video below.

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,096 questions
0 comments No comments
{count} votes

Accepted answer
  1. Tianyu Sun-MSFT 22,261 Reputation points Microsoft Vendor

    Hello @wonmin han ,

    Welcome to Microsoft Q&A forum.

    Please first try to reset Toolbox(right-click in Toolbox > Reset Toolbox) and check again.

    Also, try to remove the control and then readd it to the Toolbox. Run devenv /ResetSettings in Developer Command Prompt for Visual Studio 2022 to reset VS settings and repair VS from VS Installer > More > Repair.

    If this issue persists, could you please share the detailed steps about how you added a user control to the Toolbox with us to reproduce this issue and check further?

    Besides, did "Choose Toolbox Items" window show WPF Components correctly before you added the user control to the Toolbox?

    Best Regards,


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

0 additional answers

Sort by: Most helpful