Elad
Elad

Reputation: 20239

Using Silverlight Controls within WPF application

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?

Upvotes: 9

Views: 4131

Answers (4)

Kent Boogaart
Kent Boogaart

Reputation: 178780

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.

Upvotes: 3

Mehryar Jafari
Mehryar Jafari

Reputation: 31

There is a great PersianDate picker for WPF. Search it in CodeProject website I am using it. However there is no Scheduler I have found one which is in SilverLoght but not in WPF How can I convert it? I have full access to the SL source code

Upvotes: 0

Jon Galloway
Jon Galloway

Reputation: 53155

Here's a WPF text editor component if you can't get the Silverlight one to work:

WPF Text Editor

Upvotes: 0

Charlie
Charlie

Reputation: 15247

No, it is not possible to use Silverlight in a WPF application. They are very different technologies.

As for a "decent" rich text editor, there are plenty of decent ones (the RichTextBox that is built into WPF is more than decent). It sounds like what you really need is a rich text editor that has HTML support. If import/export of HTML is all you need, then it sounds like something you could easily add by inheriting from RichTextBox and adding some functionality.

Upvotes: 0

Related Questions