Search code examples
silverlightsilverlight-4.0out-of-browser

Pass command line arguments to OOB Silverlight 4 application


I need to launch a Silverlight 4 OOB app through an existing WinForms application (using System.Diagnostics.Process to execute sllauncher.exe). I was hoping there would be some way to make sllauncher.exe accept and pass on command line args to the OOB application, but I couldn't figure it out.


Solution

  • There's not an API provided by Silverlight to gain access to the command-line arguments.

    This is where WPF (and maybe click-once) would be a better option.

    Or consider storing the "data" needed to be passed in a local file accessible by the Silverlight application when it starts.