/// <summary>
 /// Selects the scenario corresponding with the Uri used to activate this app via a protocol. If there is no corresponding
 /// scenario then there is no effect.
 /// </summary>
 /// <param name="protocolArgs">Container for the protocol activation information which includes the Uri that activated this app</param>
 public void LoadScenarioForProtocolActivation(ProtocolActivatedEventArgs protocolArgs)
 {
     foreach (Scenario scenario in scenarios)
     {
         if (protocolArgs.Uri.Equals(SharePage.GetApplicationLink(scenario.ClassType.Name)))
         {
             // By setting the selected index, the Scenarios_SelectionChanged(...) method will be called
             ScenarioControl.SelectedIndex = scenarios.IndexOf(scenario);
             break;
         }
     }
 }
        public ShareApplicationLink()
        {
            this.InitializeComponent();

            // Populate the ApplicationLinkComboBox with the deep links for all of the scenarios
            ObservableCollection <object> scenarioList = new ObservableCollection <object>();

            foreach (Scenario scenario in rootPage.scenarios)
            {
                scenarioList.Add(SharePage.GetApplicationLink(scenario.ClassType.Name));
            }
            ApplicationLinkComboBox.ItemsSource  = scenarioList;
            ApplicationLinkComboBox.SelectedItem = ApplicationLink; // Default selection to the deep link for this scenario
        }