简体   繁体   中英

WinRT - How to use custom control from another project within the same solution?

I use Visual Studio 2015 and create a WinRT Universal App.

For my custom controls I have created a project within the same solution. Now I need to use the controls in the main application project, but they don't appear in the designer Toolbox. The Toolbox displays only controls from the active project, but not the controls from the whole solution. Is there a way to use my custom controls in the main project? I tried Add Reference for my auxiliary project in Solution Explorer, but it didn't help.

There is no way for toolbox to display your custom control from all your project inside the solution. You need to define the namespace in xaml and write the code manually.

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