Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 603
lo5 Avatar asked May 06 '10 09:05

lo5


1 Answers

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.

like image 79
WiredPrairie Avatar answered Sep 24 '22 04:09

WiredPrairie