简体   繁体   中英

Visual Studio not addin custom user control to toolbox

I created a new C# WPF app project in visual studio 2017 and added a user control to the project. Now when I try to add that user control to my main window it doesnt show up in the toolbox.

Ive checked the AutoToolboxPopulate property and it is set to true and Ive rebuilt. Ive tried closing and opening the project and Visual Studio.

What do I need to do to get my controls to show up in the toolbox?

You can try to add it to the toolbox manually In the toolbox, select the WPF Components. At this time, click Browse, find the dll, add it, and click OK.

我不小心做了一个普通的用户控件而不是 WPF 用户控件。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM