Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WP7: How to debug application when it is started by Secondary Tile of phone's start page?

I have an application which can create Secondary Tile on start page. I need to debug application when it is run from that tile. How to do that?

like image 990
giacoder Avatar asked Dec 12 '25 21:12

giacoder


1 Answers

I do this debugging by changing the entry in the WMAppManifest.xml file to a xaml address which matches the secondary tile:

e.g. I change

<DefaultTask Name="_default" NavigationPage="MainPage.xaml" />

to:

<DefaultTask Name="_default" NavigationPage="MyDeepLinkPage.xaml?SpecialId=1234" />

If you don't want to do it in Xaml then you could also intercept the RootFrame's navigating event in your app.xaml.cs code

like image 175
Stuart Avatar answered Dec 14 '25 17:12

Stuart



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!