Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 722
Elad Avatar asked Aug 20 '09 15:08

Elad


People also ask

Does WPF use Silverlight?

Summary: 1. Silverlight is simply a subset of WPF.

What is Silverlight WPF?

WPF is a thick Windows client platform that has access to the full . Net Framework. Silverlight is a browser-based technology that has access to a subset of the . Net Framework (called the CoreCLR). So, you'll notice differences using seemingly every day methods and objects within the framework.

What is the difference between WPF and Silverlight?

WPF can be ran in both a browser or as a WinForms style application in Windows while Silverlight can only be ran in a browser. WPF is intended to run on Windows systems while Silverlight runs on Windows or Mac, also Linux via Moonlight.

Can WPF be targeted to Web browser Yes or no?

WPF only runs on windows. You can make a type of wpf application called xbap which runs in a browser.


1 Answers

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.

like image 85
Kent Boogaart Avatar answered Sep 30 '22 05:09

Kent Boogaart