I am creating a player and I am very new in C# and Silverlight. In my App.xaml.cs I have this method that loads the parameter from XML.
private void Application_Startup(object sender, StartupEventArgs e)
{
MainPage = new MainPage();
this.RootVisual = MainPage;
MainPage.mySMF.LoadInitParams(e.InitParams);
}
Now in my main application which is at MainPage.xaml.cs I want to look for a certain InitParams value and if it is a certain value I want to do some task. How would I look for that value. I mean lets say that if I want it in my message box what would I write after
MessageBox.Show(???); or is there another way to do it?
Appreciate all help.
You can get the value of the
InitParamscollection at any time using the property:InitParams is a
Dictionary<string, string>, so if you want to print out the key/value pairs separated by commas, you can do something like this: