Derik Whittaker



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


About The CodeBetter.Com Blog Network
CodeBetter.Com FAQ

Our Mission

Advertisers should contact Brendan

Google Reader or Homepage Latest Items
Add to My Yahoo!
Subscribe with Bloglines
Subscribe in NewsGator Online
Subscribe with myFeedster
Add to My AOL
Furl Latest Items
Subscribe in Rojo

Member Projects
DimeCasts.Net - Derik Whittaker

Friends of
Red-Gate Tools For SQL and .NET


SmartInspect .NET Logging
NGEDIT: ViEmu and Codekana
NHibernate Profiler
Balsamiq Mockups
JetBrains - ReSharper
Web Sequence Diagrams
Ducksboard<-- NEW Friend!


Site Copyright © 2007 CodeBetter.Com
Content Copyright Individual Bloggers


Community Server (Commercial Edition)