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?因爲我認爲我做的一切都是正確的......