I’m in the process of developing my first Windows Phone 7 Application. I’m freshfaced to Silverlight, C# and the whole .NET Scene, but I like to think I’m making decent progress.
I know from various code examples, I can set the tile using ShellTile. I know I can pass through params with the URI (Like this example):
ShellTile.Create(new Uri("/MainPage.xaml?DefaultTitle=FromSecondaryTile", UriKind.Relative), tile );
Can anyone point me in the direction (or explain) how I can handle arguments passed from the tile? So, when the tile’s open, I’d like to open a certain part of the application.
For the record, I’m aware I could create a separate page for each one to handle it that way, but I can see that getting messy fast 🙂
Thanks!
Mike
A way I’ve found that works well for my particular purpose, is the same means of passing values between xaml pages, which is simply to pass them through in the query string:
NavigationContext.QueryString[“XXXXX”].ToString();
Where XXXXX is the name in the key/name pair.