Introduction: ComboBox is used when we have to select only one option from set of options. User can Click on ComboBox and select one option from list.

We take a silverlight application and then take a ComboBox. Then we write following XAML code in editor

<Grid x:Name="LayoutRoot" Background="White">
<ComboBox Height="23" HorizontalAlignment="Left" Margin="10,10,0,0" Name="ComboBox1" VerticalAlignment="Top" Width="120"
ItemsSource
="{Binding}">
<ComboBoxItem Content="A" />
<ComboBoxItem Content="B" />
<ComboBoxItem Content="C" />
<ComboBoxItem Content="D" />
<ComboBoxItem Content="E" />
<ComboBoxItem Content="F" />
</ComboBox>
</
Grid>

Then, we run the application. When we Click on ComboBox, It shows all the items. Like figure 1

ComboBox

Figure-1