Click here to Skip to main content
15,886,799 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
How to use the Picker Box in Windows mobile 7 application instead of a combo box.
C#
<toolkit:PickerBox ItemsSource="{Binding SecondItems}" SelectedItem="{Binding SecondSelected}" Foreground="{StaticResource PhoneContrastForegroundBrush}">
                <toolkit:PickerBox.ItemTemplate>
                    <DataTemplate>
                        <StackPanel x:Name="stackPanel" Orientation="Horizontal" Margin="10,10" Width="440">
                            <Rectangle Fill="{Binding Brush}" Width="42" Height="42" />
                            <TextBlock Text="{Binding Name}" FontSize="36" VerticalAlignment="Center" Margin="25,0,0,0" />
                        </StackPanel>
                    </DataTemplate>
                </toolkit:PickerBox.ItemTemplate>
            </toolkit:PickerBox>

When I use toolkit:pickerbox, it shows the type toolkit:pickerbox not found, missing any assembly reference?
Posted
Updated 20-Dec-11 23:53pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900