简体   繁体   中英

How to solve the error in WPF component on c# windows forms project?

I have created the Windows C# project.There is one windows form. In the same project I created a WPF component and when i try to place this component on windows form some error is coming "Failed to create component".

Please check the link below to get more details about error.

1.When I drag the component from toolbox to form this error comes: 在此处输入图片说明

2.while i select the WPF component in ElementHost I get this error: 在此处输入图片说明

Please help me this.

您的组件Grid_Buttons没有默认构造函数,该构造函数没有设计人员自动生成代码所需的参数。

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