Canvas control is not available in Windows form application?

WPF Canvas control is not available in Windows form application. Am using Visual Studio 2010. Framework 4.0. Is there way to add these controls to VS2010 toolbox?


You can create a WPF Usercontrol containing the Canvas control and then host it in an ElementHost control in winforms. Details of how to do it here.

You can then add that final control to the toolbox. More details on how to do can be found on this answer.

链接地址: http://www.djcxy.com/p/61316.html

上一篇: 如何在Expression Blend 2013中获取WPF和Windows Phone模板?

下一篇: Windows窗体应用程序中没有画布控件?