Search code examples
c#windows-phone-7listpicker

ListPicker always crashes when ExpansionMode is set to FullScreenOnly


How should I make my list picker open in full screen mode? When I set ExpansionMode to FullScreenOnly it crashes. I tried creating blank project and doing the same but it also crashes.

<toolkit:ListPicker Height="100" HorizontalAlignment="Left" Margin="53,37,0,0" Name="listPicker1" VerticalAlignment="Top" Width="200" ExpansionMode="FullScreenOnly">
            <toolkit:ListPickerItem Content="item1"/>
            <toolkit:ListPickerItem Content="item1"/>
            <toolkit:ListPickerItem Content="item1"/>
            <toolkit:ListPickerItem Content="item1"/>
            <toolkit:ListPickerItem Content="item1"/>
            <toolkit:ListPickerItem Content="item1"/>
        </toolkit:ListPicker>

How should I work around this problem ?


Solution

  • Adding "item1" many times might create problem? try changing content to item1, item2...etc

    If not so, try using listPicker1.Items.Add();