Hello there!
I've been programming for 6 months now - so please don't tear me apart! :(
I am all new to Silverlight and WPF and tried to code a little Windows Phone 7 application. After a while I found out that there is no real "date picker" or even a "list picker" control. So I searched for it and found out that these controls are implemented in the "Silverlight for Windows Phone Toolkit"... The name of the control is "ListPicker" and "ListPickerItem". Both are organised in the namespace "toolkit".
Both of them really worked great. Until I filled the List Control with more than 5 elements. After filling a sixth element into the control the application instantly crashed.
The XAML (Content Panel) code is:
<Grid x:Name="ContentPanel" Grid.Row="1" Margin="8,0,16,0">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" MinHeight="77"/>
<RowDefinition Height="96"/>
<RowDefinition Height="80"/>
<RowDefinition Height="354"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="0.158*"/>
<ColumnDefinition Width="0.842*"/>
</Grid.ColumnDefinitions>
<TextBlock TextWrapping="Wrap" Text="Tag" FontSize="26.667" Margin="0,0,0,12"/>
<toolkit:TimePicker Header="Uhrzeit" Value="9/16/2010" Grid.Column="1" Margin="0,0,8,0" HorizontalAlignment="Right" Width="137" Height="95" VerticalAlignment="Top" Grid.Row="1"/>
<toolkit:ListPicker Grid.Column="1" Margin="0,0,20,0">
<toolkit:ListPickerItem Content="Montag" Height="50"/>
<toolkit:ListPickerItem Content="Dienstag" Height="50"/>
<toolkit:ListPickerItem Content="Mittwoch" Height="50"/>
<toolkit:ListPickerItem Content="Donnerstag" Height="50"/>
<toolkit:ListPickerItem Content="Freitag" Height="50"/>
<toolkit:ListPickerItem Content="Samstag" Height="50"/>
<toolkit:ListPickerItem Content="Sonntag" Height="50"/>
</toolkit:ListPicker>
</Grid>
If I jump to the screen where I placed the mentioned control, the following error appears:
[Line: 0 Position: 0]
--- Inner Exception ---
The parameter is incorrect.
It's a "System.Windows.Markup.XamlParseException"...
Is there the possibility that this elements can only contain up to five elements?
Thank you very much and please forgive my poor English :(