如何在WP7中的Listpicker中添加项目?

son*_*ona 0 windows-phone-7

如何在WP7中的Listpicker中添加项目?使用XAML.以简单的方式.

Pra*_*ian 5

<toolkit:ListPicker>
  <toolkit:ListPickerItem Content="One"/>
  <toolkit:ListPickerItem Content="Two"/>
  <toolkit:ListPickerItem Content="Three"/>
</toolkit:ListPicker>
Run Code Online (Sandbox Code Playgroud)

您还可以自定义ItemTemplate控制内容的外观.是一篇解释如何执行此操作的文章.