Derik Whittaker

Syndication

News


Help my Secondary Tile will not navigate correctly in my Win Phone Application

When you are adding the ability to have a Secondary tile to your Windows phone application you may from time to time find the need to debug or mimic the launching of the application via the Secondary tile w/ the correct query string values. Sadly, debugging this via the debugger is not something that I have found out how to do, if it is possible please let me know.  However, I have found another way to get the same result and here is how.

  1. Get the exact tile uri used for the secondary tile.
    Example: “/views/events/Landing.xaml?Id=1”
  2. Open up the WMAppManifest.xml page under resources
  3. Find the line that looks like this:
    <DefaultTask Name="_default" NavigationPage="MainPage.xaml" />
  4. Replace it w/ the URI of your secondary tile like this:
    <DefaultTask Name="_default" NavigationPage="/views/events/Landing.xaml?Id=1" />
  5. Launch the application

If you are wired everything correctly your page should load, but if you are trying to debug this it is likely you did not have everything correct.  If you did not do things correctly you should get some sort of runtime error.

Hope this helps

Till next time,


Posted 08-25-2012 8:15 PM by Derik Whittaker

[Advertisement]

About The CodeBetter.Com Blog Network
CodeBetter.Com FAQ

Our Mission

Advertisers should contact Brendan

Subscribe
Google Reader or Homepage

del.icio.us CodeBetter.com Latest Items
Add to My Yahoo!
Subscribe with Bloglines
Subscribe in NewsGator Online
Subscribe with myFeedster
Add to My AOL
Furl CodeBetter.com Latest Items
Subscribe in Rojo

Member Projects
DimeCasts.Net - Derik Whittaker

Friends of Devlicio.us
Red-Gate Tools For SQL and .NET

NDepend

SlickEdit
 
SmartInspect .NET Logging
NGEDIT: ViEmu and Codekana
LiteAccounting.Com
DevExpress
Fixx
NHibernate Profiler
Unfuddle
Balsamiq Mockups
Scrumy
JetBrains - ReSharper
Umbraco
NServiceBus
RavenDb
Web Sequence Diagrams
Ducksboard<-- NEW Friend!

 



Site Copyright © 2007 CodeBetter.Com
Content Copyright Individual Bloggers

 

Community Server (Commercial Edition)