testing a combo box has a selected item
<p>Just doing the code behind for my combobox, im testing that there is a selection and not what is displayed in the text property (xaml below '-select-'). (also is -select- at index 0?)</p>

<p><em>Basically need help structuring the code behind method , if statement.</em></p>

<p>if there is selection then adds course to List. Else, it will display messagebox error.</p>

<p><strong>XAML</strong></p>

<pre><code>&lt;ComboBox x:Name="CboxCourseList" Text="-Select-" IsEditable="True" IsReadOnly="True"/&gt;
</code></pre>

<p><strong>code behind:</strong></p>

<pre><code>private void AddRequest_Clicked(object sender, RoutedEventArgs e)
    {
        if(CboxCourseList) &lt;--**this is where i need help, what property do i need**
              ....
        else{
            MessageBox.Show("Course must be selected");
        }
    }
</code></pre>