A WPF Wrapper around the ScintillaNET v3 control
A WPF Wrapper around the ScintillaNET v3 control with demo.
This project borrows from the follow projects:
As noted in the ScintillaNET documenation, ScintillaNET can be used in a WPF form by using the WindowsFormsHost control. This project wraps the WindowsFormsHost control into a WPF control that can dropped onto a form.
There are some differences between WinForm controls and WPF controls:
WinForms use colours from the System.Drawing namespace, WPF controls use colours from the System.Media namespace. For compatibility with the designer, base ScintillaNET properties use the System.Media colours. To avoid reworking of nested property classes (like Styles) that are not shown in the designer, colour properties use System.Drawing colours.
Events in WinForms derive from System.Windows.Forms (i.e. System.Windows.Forms.KeyEventHandler) and WPF events derive from System.Windows.Input. To maintain compatibility, WinForms events have been used.