We take a Silverlight application and write the
following XAML code in editor
<Grid
x:Name="LayoutRoot"
Background="White">
<ComboBox
Height="42"
HorizontalAlignment="Left"
ItemsSource="{Binding
}"
Margin="38,35,0,0"
Name="ComboBox1"
VerticalAlignment="Top"
Width="134"
Background="#FF365772"
Foreground="#FF3D3F41"
/>
</Grid>
We write the following
code on
MainPage.xaml.vb
Partial
Public Class
MainPage
Inherits
UserControl
Public Sub New()
InitializeComponent()
Dim
ss As String() =
{"Sunday",
"Monday", "Tuesday",
"Wednesday", "Thursday",
"Friday","Saturday"}
Me.DataContext
= ss
End
Sub
End
Class
Then, we run our application. When we Click on ComboBox, all the items are displayed in it and we can simply select one of them. Like below figure
![combobox in silverlight]()
![combobox in silverlight]()