c# - differentiating primary tile vs app-list wp8 -
i developing app wp8.i want know how find out app coming foreground clicking on app-list or primary tile user created.in way want know how many users creates primary tile.
you can add navigation parameter secondary tile :
string tileparameter = "param=myparameter"; shelltile tile = checkiftileexist(tileparameter); if (tile == null) { standardtiledata secondarytile = new standardtiledata { title = tileparameter, backgroundimage = new uri("background-secondary.png", urikind.relative), count = 2, backcontent = "secondary tile test" }; shelltile.create(new uri("/mainpage.xaml?" + tileparameter, urikind.relative), secondarytile); }
and then, in mainpage's onnavigatedto event, can parameter this:
if (this.navigationcontext.querystring.containskey("param")) { string param = this.navigationcontext.querystring["param"];//get "param" query string. //do whatever want parameter }