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.
精彩评论