Passing App starteventargs to a view model

Topics: Bootstrappers & IoC, UI Architecture
Jun 15, 2013 at 4:10 PM

I have an application, that gets launched from another application passing a view start arguments.

That gets handled on the App_Start method, that I set up in my app.xaml, all that works fine. But I want those arguments to be passed to the mainviewmodel. what I did is created a static property on the app and I get the arguments that way.

I do not like that, is there a better way to do this?