I am using express edition visual studio 2010 for windows phone 7 , 7.1 sdk. I am trying a tutorial over at app hub but when i reach the combo example, the combo box doesn’t show in the xaml and not even when i run the app.
I looked over in the Toolbox editor in VS and also the combo box isn’t there.
Is combo box in the silverlight toolkit? (i don’t have it installed, that would justify why i can’t see it in the toolbox). If no, why can’t i see it? The code in the example (XAML) for the combobox is :
<ComboBox x:Name="ComboBox1" ItemsSource="{Binding}"
Foreground="Black" FontSize="18" Height="50" Width="400"/>
which looks fine to me.
In Windows Phone 7 there is a ComboBox, but it is hardly useful. It hasn’t been “themed” to the metro style or the Windows Phone 7 guidlines at all. It behaves just like a regular Silverlight control. You could change the template to a Metro one, or use the
ListPickercontrol that is part of the Silverlight Toolkit for Windows Phone. This control overall behaves like other list selectors you’d see in the phone.Once you’ve got the toolkit setup and running this Code Project article gives a nice walkthrough on how to use it.
Generally, the Silverlight Toolkit is a great asset anyway. There are lots of other out of box controls in there that make things easier. I’d encourage you to review the toolkit’s documentation as well.