Can you make Silverlight run only Out-of-browser?

Can you make Silverlight run only Out-of-browser?

EDIT: The reason I ask is because many Silverlight features only work with OOB. If my application depends on this, I need to either require a Silverlight application to run in this mode, or select something else.

+5
source share
2 answers

How about using this in yours Application_Startupeven in App.Xaml.cs: -

private void Application_Startup(object sender, StartupEventArgs e)
{

     if (IsRunningOutOfBrowser)
     {
          this.RootVisual = new MainPage();
     }
     else
     {
          this.RootVisual = new PleaseRunOOB():
     }
}

Now create a very simple UserControl called PleaseRunOOBto provide the neeed user to install and / or run the OOB version of the application.

+8
source

http://blogs.microsoft.co.il/blogs/alex_golesh/archive/2010/03/15/silverlight-4-quick-tip-out-of-browser-improvements.aspx

OOB - - (, 3), ( XAP ). Silverlight 4 OOB- , " " - .

. :

"%ProgramFiles(x86)%\Microsoft Silverlight\sllauncher.exe" /overwrite /install:"X:\PACKAGE_LOCATION\SL4Features.Web\ClientBin\APPLICATION.xap"
/origin:http://ORIGINAL_LOCATION/ORIGINAL_HOSTING_PAGE /shortcut:desktop

, :

"%ProgramFiles(x86)%\Microsoft Silverlight\sllauncher.exe" /overwrite /uninstall:"X:\PACKAGE_LOCATION\APPLICATION.xap"
/origin:http://ORIGINAL_LOCATION/ORIGINAL_HOSTING_PAGE /shortcut:desktop

( ), :

"%ProgramFiles(x86)%\Microsoft Silverlight\sllauncher.exe" /overwrite /emulate:"X:\PACKAGE_LOCATION\APPLICATION.xap" /origin:http://ORIGINAL_LOCATION/
+4

All Articles