Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Silverlight 3 - Can I run Out-of-browser inside another application

The new Silverlight 3 beta includes the ability to run Out-of-Browser applications. The demos so far show this only inside a special frame. Does anyone know how I can run Siverlight 3 controls inside a (WPF) application?

like image 838
Peter Avatar asked Mar 19 '09 10:03

Peter


People also ask

What is Microsoft Silverlight out of browser launcher?

Silverlight is a Web application technology that represents a radical upgrade of your Web experience. Silverlight applications add rich user interface designs to Web pages, including interactive media and animated effects. Silverlight can also run outside the browser on Windows and Macintosh computers.

What is the use of Silverlight application?

Microsoft Silverlight is a free web-browser plug-in that enables interactive media experiences, rich business applications and immersive mobile apps.

How to run Silverlight project?

Click the File menu, point to New and then click Project. Step 2 − A New Project dialog box will open. Under Templates, select Visual C# and then click Silverlight. In the right pane, choose Silverlight Application.


2 Answers

No, you can not embed out-of-browser silverlight into WPF. The sllauncher.exe standalone frame has a special handler for the offline://(hostname).(revision)/ url given to it to allow the app to have all the features of out-of-browser mode (like extra keyboard access). Unless you can find a way to embed this app into your app, you won't be able to get out-of-browser; if you know some way to do this the address for this app is:

C:\Program Files\Microsoft Silverlight\3.0.40307.0\sllauncher.exe

As others have said, however, you can embed a silverlight control inside of an html page and that inside a WebBrowser element. Be cautious with this method, however, since there is currently no x64 support for Silverlight and if you absolutely must do this make sure to compile specifically for x86.

like image 140
スーパーファミコン Avatar answered Sep 28 '22 20:09

スーパーファミコン


I'm guessing (yes, shame on me!) but you can probably put a WPF web browser on your window and navigate to the Silverlight app inside it.

This is a supported scenario; a recent MSDN article stated this scenario was supported, and scenarios like this forced the CLR team to allow multiple CLRs loaded into a single process.

like image 45
Judah Gabriel Himango Avatar answered Sep 28 '22 18:09

Judah Gabriel Himango