2012-02-09 55 views
0

好吧,我创建了一个项目绑定到它的列表框,并且出于某种原因,它不会在水龙头上打开。但我可以看到,第一个项目其余的可能都是如此。Listpicker没有打开

下面是代码:

<toolkit:ListPicker Name="lookingForLstBox" Margin="10,0,0,0" ItemsSource="{Binding DiscoveryCollection}" SelectedIndex="{Binding PickerSelectedIndex, Mode=TwoWay}" LostFocus="lookingForLstBox_LostFocus"> 
    <toolkit:ListPicker.ItemTemplate> 
     <DataTemplate> 
      <StackPanel> 
       <TextBlock Text="{Binding name}"/> 
      </StackPanel> 
     </DataTemplate> 
    </toolkit:ListPicker.ItemTemplate> 
    <toolkit:ListPicker.FullModeItemTemplate> 
     <DataTemplate> 
      <StackPanel Orientation="Horizontal" Margin="0 21 0 20"> 
       <TextBlock Text="{Binding name}" Margin="16 0 0 0" FontSize="43" FontFamily="{StaticResource PhoneFontFamilyLight}"/> 
      </StackPanel> 
     </DataTemplate> 
    </toolkit:ListPicker.FullModeItemTemplate> 
</toolkit:ListPicker> 

public IList<Discovery> DiscoveryCollection { get; private set; } 

public struct Discovery 
{ 
    public int id { get; set;} 
    public string name { get; set;} 
} 

这是一个已知的bug?因为我认为我做的一切都是正确的......

回答

1

问题解决了,这个bug在silverlightToolkit Oct11中修复了。