I create a datatemplate for a combobox as follows:
<DataTemplate x:Key="AircraftTypeTemplate">
<StackPanel Orientation="Horizontal" Width="340">
<telerik:RadComboBox>
<telerik:RadComboBoxItem>CJ1</telerik:RadComboBoxItem>
<telerik:RadComboBoxItem>CJ3</telerik:RadComboBoxItem>
<telerik:RadComboBoxItem>Bravo</telerik:RadComboBoxItem>
<telerik:RadComboBoxItem>Excel</telerik:RadComboBoxItem>
<telerik:RadComboBoxItem>Sovereign</telerik:RadComboBoxItem>
</telerik:RadComboBox>
</StackPanel>
</DataTemplate>
It renders fine, but I would like to be able to associate a value with each of the items without having to bind it to some data context. For example I would like the CJ1 comboboxitem to have a value of 5. How would I set those in XAML?
Like:
<telerik:RadComboBoxItem Value="5">CJ1</telerik:RadComboBoxItem>
And then how would I bind the SelectedValue of the combobox to the Tag of the selected item?
Thanks!