Link to home
Start Free TrialLog in
Avatar of dchau12
dchau12

asked on

Silverlight Combo Box

In WPF, I had a combo box with an attribute of "Text"  I was able to bind the selected value of the combo box with the following:  Text="{Binding CarrierCriteria.insExpDateOperator}"

In Silverlight, there is no Text attribute.  How do I capture the users selected value?

Here is the element:
<ComboBox >
     <ComboBoxItem Content="&gt;"></ComboBoxItem>
     <ComboBoxItem Content="&gt;="></ComboBoxItem>
     <ComboBoxItem Content="&lt;"></ComboBoxItem>
     <ComboBoxItem Content="&lt;="></ComboBoxItem>
     <ComboBoxItem Content="="></ComboBoxItem>
</ComboBox>

ASKER CERTIFIED SOLUTION
Avatar of TSmooth
TSmooth

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of dchau12
dchau12

ASKER

I read that article before and I have already implimented the work around for SelectedValue where my datasources are web service objects.

SelectedItem brings back the whole object.  I am hoping it works for a static list in the combo box.  The web service is down, so I'll test it in a bit when it comes back up.