C# – Using Silverlight Controls within WPF application

cnetsilverlightwpf

I was looking for a rich text editor with support for export/import to Html.
All the available controls I found are Silverlight controls.

Someone asked in StackOverflow about WPF text editor, and the selected answer was:

A possible place to start, given the overlap between WPF and Silverlight is the Silverlight Rich Text Editor.

As far as I know, it is not possible to use Silverlight controls inside WPF application. Using browser control to host the Silverlight control seem to me like a really bad option.

Is it possible to use Silverlight in WPF application?
Otherwise, is there any descent WPF rich text editor out there?

Best Answer

I think the poster on the Stackoverflow question was suggesting recompiling the source to target WPF. This might imply fixing up / replacing certain bits of code, but having the source to a SL control makes it conceivable to port it to WPF.