title: Load Selected item of combobox from roaming settings
body: <p>I have a combobox</p>
  
  <pre><code>&lt;ComboBox x:Name="cityPicker"&gt;
      &lt;ComboBoxItem IsSelected="True"&gt;
          &lt;x:String&gt;
              city1
          &lt;/x:String&gt;
      &lt;/ComboBoxItem&gt;
      &lt;ComboBoxItem&gt;
          &lt;x:String&gt;
              city2
          &lt;/x:String&gt;
      &lt;/ComboBoxItem&gt;
  </code></pre>
  
  <p>When user select 'city2' then I save it to roaming settings in <code>selectedCity</code> key.</p>
  
  <p>I need to load this value from roaming settings when user start application after exit and after back to this page from another one.</p>
  
  <p>With this code value saved to RoamingSetting, and when i start application after change city, roamingsettings have its value. But Combobox doesn't retrieve it. Combobox selected item stay empty.</p>
  
  <p>How to change selected item in combobox programmatically?</p>
  
  <pre><code> protected override void LoadState(Object navigationParameter, Dictionary&lt;String, Object&gt; pageState)
   {
       var roamingSettings = Windows.Storage.ApplicationData.Current.RoamingSettings;
       if (roamingSettings.Values.ContainsKey("selectedCity"))
       {
           cityPicker.SelectedValue = roamingSettings.Values["selectedCity"].ToString();
       }
   }
  
  public StartPage()
          {
              InitializeComponent();
  
              cityPicker.SelectionChanged += cityPicker_SelectionChanged;
          }
  
          void cityPicker_SelectionChanged(object sender, SelectionChangedEventArgs e)
          {
              var roamingSettings =
                 Windows.Storage.ApplicationData.Current.RoamingSettings;
              var cityPick = cityPicker.SelectedItem as ComboBoxItem;
              if (cityPick != null) roamingSettings.Values["selectedCity"] = cityPick.Content;
          }
  </code></pre>
  
  <p>I can do it only by change <code>SelectedIndex</code>. But this is not what I want.</p>