hello,
i am using the ListPicker control and it's bounded to both ItemSource and SelectedItem Properties.
when i use this xaml:
<toolKitControls:ListPicker Header="Priority" Grid.Row="2" Grid.Column="1" x:Name="PriorityComboBox"
ItemsSource="{Binding Path=Priorities}"
SelectedItem="{Binding Mode=TwoWay, Path=DataModel.Priority}"/>
everything works just fine,
but when i alter the code to the following:
<toolKitControls:ListPicker Header="Priority" Grid.Row="2" Grid.Column="1" x:Name="PriorityComboBox"
SelectedItem="{Binding Mode=TwoWay, Path=DataModel.Priority}"
ItemsSource="{Binding Path=Priorities}" />
i experience ArgumentOutOfRangeException at runtime,
i assume the SelectedItem is checked agianst the collection which is still empty.
in the framework control that doesn't occur.
just wanted to let ypou knowm
thanks!
Comments:
i am using the ListPicker control and it's bounded to both ItemSource and SelectedItem Properties.
when i use this xaml:
<toolKitControls:ListPicker Header="Priority" Grid.Row="2" Grid.Column="1" x:Name="PriorityComboBox"
ItemsSource="{Binding Path=Priorities}"
SelectedItem="{Binding Mode=TwoWay, Path=DataModel.Priority}"/>
everything works just fine,
but when i alter the code to the following:
<toolKitControls:ListPicker Header="Priority" Grid.Row="2" Grid.Column="1" x:Name="PriorityComboBox"
SelectedItem="{Binding Mode=TwoWay, Path=DataModel.Priority}"
ItemsSource="{Binding Path=Priorities}" />
i experience ArgumentOutOfRangeException at runtime,
i assume the SelectedItem is checked agianst the collection which is still empty.
in the framework control that doesn't occur.
just wanted to let ypou knowm
thanks!
Comments:
Closing as a duplicate of http://silverlight.codeplex.com/workitem/7561