开发者

Use WinForms custom textBox in WPF?

开发者 https://www.devze.com 2023-03-11 10:06 出处:网络
I hav开发者_如何学Ce a WPF application that is in need of syntax highlighting. THIS is exactly what I\'m looking for... however its for WinForms. Can I, and if so, how do I add it to my WPF program?ht

I hav开发者_如何学Ce a WPF application that is in need of syntax highlighting. THIS is exactly what I'm looking for... however its for WinForms. Can I, and if so, how do I add it to my WPF program?


http://wpfsyntax.codeplex.com/

http://devhawk.net/2009/07/09/syntax-highlighting-textboxes-in-wpf-a-sad-story/


There's a walkthrough on MSDN

This walkthrough steps you through an application that hosts a Windows Forms composite control to perform data entry in a WPF application. The composite control is packaged in a DLL. This general procedure can be extended to more complex applications and controls.

In this scenario the WinForms controls are in a separate dll which needs to be signed.

The WPF application needs to use a WinFormsHost control as the container for the control.

0

精彩评论

暂无评论...
验证码 换一张
取 消