I read many other questions about this and the answers don't work for me. How can I get the text content of a combobox in C#? This is a Windows Store app, not WPF, nor Silverlight.

&lt;ComboBox Name="ColorListSortSelection" Grid.Column="1" Margin="24,5,24,8"
          VerticalAlignment="Top" SelectedIndex="0" HorizontalAlignment="Stretch"&gt;
    &lt;ComboBoxItem&gt;Sort By HSB&lt;/ComboBoxItem&gt;
    &lt;ComboBoxItem&gt;Sort By SBH&lt;/ComboBoxItem&gt;
    &lt;ComboBoxItem&gt;Sort By BHS&lt;/ComboBoxItem&gt;
    &lt;ComboBoxItem&gt;Sort By HBS&lt;/ComboBoxItem&gt;
    &lt;ComboBoxItem&gt;Sort By SHB&lt;/ComboBoxItem&gt;
    &lt;ComboBoxItem&gt;Sort By BSH&lt;/ComboBoxItem&gt;
    &lt;ComboBoxItem&gt;Sort By Name&lt;/ComboBoxItem&gt;
&lt;/ComboBox&gt;


and the C# code to go with it:

object Temp = ColorListSortSelection.SelectedItem;
string Content = Temp.ToString();


The Content string ends up being "Windows.UI.Xaml.Controls.ComboBoxItem", not the string that appears in the box.

The .Content member is private, so I can't access the text that way.

I'm sure that I just did something wrong here, but the solution eludes me.

Dave


Question: How do you close Skype?
Answer: Right click on the skype instance in the taskbar and then click Quit Skype