0
我使用Silverlight Toolkit中的MultiselectList
。當我檢查MultiselectList
中的項目時,如何刪除這些項目?如何從MultiselectList中刪除項目?
這是C#示例:
for (int i = checkedListBox1.Items.Count - 1; i >= 0; i--)
{
if (checkedListBox1.GetItemChecked(i))
{
checkedListBox1.Items.RemoveAt(i);
}
}
我需要爲Windows Phone的代碼示例7
-1 Multiselect中沒有'SelectedIndex'名單。 –
如果是給我的答案鏈接在wp7中是否有MultiselectList?根據這個鏈接http://stackoverflow.com/questions/3811343/silverlight-listbox-with-multiple-selection-mode我的回答是正確的。 – PCS
Silverlight工具包中有一個MultiselectList:https://silverlight.codeplex.com/releases/view/71550 –