Pinning

Apr 1, 2013 at 2:20 PM
Hi Guys,
Maybe I am confusing myself,
I can pin an Item to start screen, and in its URI I have some query string Values.
for example:
/View/ViewDetailPage.xaml?name="example"&id="123"
Now what I want is that upon tapping the Tile the app will navigate to
ViewDetailPage.xaml
And it does but how can I make my ViewModel get those Query String Values.

Please help !! =)
Thanks
Ronak
Apr 4, 2013 at 9:34 AM
Hi Guys so I know how to get these values as well.

The problem now is that,

when navigating from the Secondary Tile, the View is created first and does not know about the ViewModel.
I want to create my ViewModel before the View, which is fine I can do that in the App.xaml.cs file, but is this safe and correct to do ?
if so which function can I create my ViewModel in ?

Please Advise =)

Thanks
Ronak
Apr 8, 2013 at 6:36 AM
Currently I have solved this by using some code in the code behind file of the view to initalize its viewmodel with certain parameters.
It works and things seem to be fine.

Thanks
Ronak